dqm_ml_core.utils.registry
Plugin registry for dynamically loading DQM components.
This module contains the PluginLoadedRegistry class and load_registered_plugins function for discovering and loading metric processors, data loaders, and output writers via Python entry points.
logger = logging.getLogger(__name__)
module-attribute
PluginLoadedRegistry
Singleton registry that provides lazy access to all registered DQM components.
Components include: - Metrics (Processor) - DataLoaders - OutputWriters
Source code in packages/dqm-ml-core/src/dqm_ml_core/utils/registry.py
get_dataloaders_registry() -> dict[str, Any]
classmethod
Return the registry of available data loaders.
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
A dictionary mapping data loader names to their classes. |
Source code in packages/dqm-ml-core/src/dqm_ml_core/utils/registry.py
get_features_registry() -> dict[str, type[Processor]]
classmethod
Return the registry of available feature extraction processors.
Returns:
| Type | Description |
|---|---|
dict[str, type[Processor]]
|
A dictionary mapping feature processor names to their classes. |
Source code in packages/dqm-ml-core/src/dqm_ml_core/utils/registry.py
get_gap_registry() -> dict[str, type[Processor]]
classmethod
Return the registry of available gap processors.
Returns:
| Type | Description |
|---|---|
dict[str, type[Processor]]
|
A dictionary mapping gap processor names to their classes. |
Source code in packages/dqm-ml-core/src/dqm_ml_core/utils/registry.py
get_metrics_registry() -> dict[str, type[Processor]]
classmethod
Return the registry of available metric processors.
Returns:
| Type | Description |
|---|---|
dict[str, type[Processor]]
|
A dictionary mapping metric processor names to their classes. |
Source code in packages/dqm-ml-core/src/dqm_ml_core/utils/registry.py
get_outputwriter_registry() -> dict[str, Any]
classmethod
Return the registry of available output writers.
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
A dictionary mapping output writer names to their classes. |
Source code in packages/dqm-ml-core/src/dqm_ml_core/utils/registry.py
load_registered_plugins(plugin_group: str, base_class: Any, base_name: str = 'default') -> dict[str, Any]
Discover and load plugins registered via Python entry points.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plugin_group
|
str
|
The entry point group name (e.g., 'dqm_ml.metrics'). |
required |
base_class
|
Any
|
Optional base class to verify plugin type safety. |
required |
base_name
|
str
|
Name of the base class to ignore during discovery. |
'default'
|
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
A dictionary mapping plugin names to their loaded classes. |