Expand description
Load a Python plugin package and produce a PythonPluginHandle whose
method-index map lets the host dispatch by index just like the cdylib
path.
Loading steps:
- Read the package’s
package.tomland assertruntime = "python". - Prepend
<dir>/vendorand<dir>tosys.path(idempotent — repeated loads of the same package don’t insert twice). - Import the entry module declared in
[python].entry_module. - Validate the module’s
__interface_hash__constant against the descriptor passed by the host. Mismatch = clean load error. - Look up each method by name (in the descriptor’s order) so vtable indices resolve to Python callables at call time.
What we don’t do here: subprocess spawning, venv creation, or cancellation. All Python work happens in the host’s embedded interpreter (T-0085).
Enums§
- Python
Load Error - Errors that can happen during Python plugin load.
Functions§
- load_
python_ plugin - Load a Python plugin package against a static interface descriptor.