drive.factory package#
Submodules#
drive.factory.factory module#
- class drive.factory.factory.AnalysisObj(*args, **kwargs)[source]#
Bases:
ProtocolInterface defining of an analysis object
- exception drive.factory.factory.PluginNotFound(plugin_type: str)[source]#
Bases:
ExceptionError that is raised if the user tries to load a plugin that is not there
- drive.factory.factory.create(arguments: dict[str, Any]) AnalysisObj[source]#
- drive.factory.factory.register(plugin_name: str, creation_func: Callable[[...], AnalysisObj]) None[source]#
registers the AnalysisObj plugin
drive.factory.loader module#
File used to load in the different plugins
- class drive.factory.loader.PluginInterface(*args, **kwargs)[source]#
Bases:
ProtocolInterface that will define how a plugin looks like
- drive.factory.loader.import_module(name: str) PluginInterface[source]#
Import the plugin so it can be initialized
- Parameters:
name (str) – name of the plugin
- Return type: