Skip to main content

load_python_plugin_configured

Function load_python_plugin_configured 

Source
pub fn load_python_plugin_configured(
    package_dir: &Path,
    descriptor: &'static PythonInterfaceDescriptor,
    config: &Value,
) -> Result<PythonPluginHandle, PythonLoadError>
Expand description

Load a configured Python plugin instance (FIDIUS-A-0006 / CI.4): import the module, call its module-level __fidius_configure__(config) -> instance with the deserialized config, and bind methods on the returned instance — so the config is bound once and N differently-configured instances coexist (each is a distinct object). The module must export __fidius_configure__.