betty.plugin.lazy module¶
Lazily load plugins.
- class betty.plugin.lazy.LazyPluginRepositoryBase[source]¶
Bases:
PluginRepository[_PluginT],Generic[_PluginT]Lazily load plugins.
- async get(plugin_id: str) type[betty.plugin.lazy._PluginT][source]¶
Get a single plugin by its ID.
- Raises:
PluginNotFound – if no plugin can be found for the given ID.
- Parameters:
plugin_id (
str)- Return type:
type[typing.TypeVar(_PluginT, bound=betty.plugin.Plugin)]