Registry

This module contains functionality related to the the registry module for extraction.datasources.

Registry

DatasourceManagerRegistry

Bases: Registry

Registry for datasource managers.

This registry maps DatasourceName enums to their corresponding manager implementations. It provides a centralized way to register and retrieve datasource managers.

Attributes:
  • _key_class (Type) –

    Type of the key used in the registry (DatasourceName).

Source code in src/extraction/datasources/registry.py
 7
 8
 9
10
11
12
13
14
15
16
17
class DatasourceManagerRegistry(Registry):
    """Registry for datasource managers.

    This registry maps DatasourceName enums to their corresponding manager implementations.
    It provides a centralized way to register and retrieve datasource managers.

    Attributes:
        _key_class: Type of the key used in the registry (DatasourceName).
    """

    _key_class: Type = DatasourceName