MCPcopy Create free account
hub / github.com/PyO3/pyo3 / start

Function start

examples/plugin/python_plugin/gadget_init_plugin.py:5–12  ·  view source on GitHub ↗

create an instance of Gadget, configure it and return to Rust

()

Source from the content-addressed store, hash-verified

3
4
5def start():
6 """create an instance of Gadget, configure it and return to Rust"""
7 g = plugin_api.Gadget()
8 g.push(1)
9 g.push(2)
10 g.push(3)
11 g.prop = rng.get_random_number()
12 return g

Callers

nothing calls this directly

Calls 1

pushMethod · 0.95

Tested by

no test coverage detected