pynenc.plugin_loader¶
Plugin loader for Pynenc.
This module handles automatic discovery and loading of plugins registered via entry points. It ensures that all plugin classes (e.g., brokers, state backends, orchestrators) are imported into memory, making them available for subclass discovery even when not using the builder.
Module Contents¶
Functions¶
Discover and load all plugins registered under the ‘pynenc.plugins’ entry point group. |
Data¶
API¶
- pynenc.plugin_loader.logger¶
‘getLogger(…)’
- pynenc.plugin_loader.load_all_plugins() None[source]¶
Discover and load all plugins registered under the ‘pynenc.plugins’ entry point group.
This function iterates through all entry points in the ‘pynenc.plugins’ group, imports the specified modules, and ensures plugin classes are available for subclass discovery. This is called at Pynenc app startup to enable dynamic component resolution.
- Raises:
ImportError – If a plugin module cannot be imported