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.ImageConverterManager class

Manager for AbstractImageConverter plugin instances

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

Methods

def instantiate(self, arg0: str, /) -> AbstractImageConverter
Instantiate a plugin
def load(self, plugin: str) -> corrade.pluginmanager.LoadState
Load a plugin
def load_and_instantiate(self, arg0: str, /) -> AbstractImageConverter
Load and instantiate plugin
def load_state(self, plugin: str) -> corrade.pluginmanager.LoadState
Load state of a plugin
def metadata(self, plugin: str) -> corrade.pluginmanager.PluginMetadata
Plugin metadata
def register_external_manager(self, manager: corrade.pluginmanager.AbstractManager) -> None
Register an external manager for resolving inter-manager dependencies
def reload_plugin_directory(self, /) -> None
Reload plugin directory
def set_preferred_plugins(self, alias: str, plugins: list[str]) -> None
Set preferred plugins for given alias
def unload(self, plugin: str) -> corrade.pluginmanager.LoadState
Unload a plugin

Special methods

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

Properties

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

Data

VERSION = 7