base_registry
Functionality to register, initialize and retrieve glotaran plugins.
Since this module is imported at the root __init__.py
file all other
glotaran imports should be used for typechecking only in the ‘if TYPE_CHECKING’ block.
This is to prevent issues with circular imports.
Functions
Summary
Add instances of plugin_class to the given registry.
Add a plugin with name
plugin_register_key
to the given registry.Full name of a plugin instance/class similar to the
repr
.Retrieve a method callabe from an class or instance plugin.
Retrieve a plugin with name
plugin_register_key
is registered in a given registry.Check if a plugin with name
plugin_register_key
is registered in the given registry.Initialize plugins registered under the entrypoint 'glotaran.plugins'.
Check if a plugins methods implementation differ from its baseclass.
Create table of which plugins methods differ from their baseclass.
Names of the plugins in the given registry.
Set a plugins short name to a specific plugin referred by its full name.
Show help on a method as if it was called directly on it.
Get file extensions for plugins that support all methods in
method_names
.
Exceptions
Exception Summary
PluginOverwriteWarning
Warning used if a plugin tries to overwrite and existing plugin.