util
General utitilies with relevance for plugins.
check_implements_method ¶
check_implements_method(name: str, plugin, base_method)
Check whether plugin overrides a method of its superclass.
Source code in src/metador_core/plugin/util.py
22 23 24 25 26 |
|
check_is_subclass ¶
check_is_subclass(name: str, plugin, base)
Check whether plugin has expected parent class (helper method).
Source code in src/metador_core/plugin/util.py
29 30 31 32 33 |
|
register_in_group ¶
register_in_group(
pgroup: PluginGroup,
plugin: Optional[Type[T]] = None,
*,
violently: bool = False
)
Register and load a plugin manually, without defining an entry point.
Source code in src/metador_core/plugin/util.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|