Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

magnum.trade.ImporterManager class

Manager for AbstractImporter plugin instances


Each plugin returned by instantiate() or load_and_instantiate() references its owning ImporterManager through AbstractImporter.manager, ensuring the manager is not deleted before the plugin instances are.


def instantiate(self, arg0: str, /) -> AbstractImporter
def load(self, arg0: str, /) -> corrade.pluginmanager.LoadState
Load a plugin
def load_and_instantiate(self, arg0: str, /) -> AbstractImporter
def load_state(self, arg0: str, /) -> corrade.pluginmanager.LoadState
Load state of a plugin
def reload_plugin_directory(self, /) -> None
Reload plugin directory
def unload(self, arg0: str, /) -> corrade.pluginmanager.LoadState
Unload a plugin

Special methods

def __init__(self, plugin_directory: str = '') -> None


alias_list: typing.List[str] get
List of all available alias names
plugin_directory: str get set
Plugin directory
plugin_interface: str get
Plugin interface
plugin_list: typing.List[str] get
List of all available plugin names