compass.plugin.registry.register_plugin#

register_plugin(plugin_class)[source]#

Register a plugin class in the plugin registry

Parameters:

plugin_class (type) – The plugin class to register. Must be a subclass of BaseExtractionPlugin and must pass the plugin configuration validation.

Raises:

COMPASSPluginConfigurationError – If the plugin class is not a subclass of BaseExtractionPlugin or if it does not pass the plugin configuration validation.