Package reference ================= .. toctree:: Base class for extractors ------------------------- .. autoclass:: cognite.extractorutils.Extractor :members: :undoc-members: :inherited-members: :show-inheritance: ``configtools`` - Utilities for reading, parsing and validating config files ---------------------------------------------------------------------------- The ``configtools`` module exists of tools for loading and verifying config files for extractors. Extractor configurations are conventionally written in *hyphen-cased YAML*. These are typically loaded and serialized as *dataclasses* in Python. Config loader ^^^^^^^^^^^^^ .. autofunction:: cognite.extractorutils.configtools.load_yaml .. autofunction:: cognite.extractorutils.configtools.load_yaml_dict .. autoclass:: cognite.extractorutils.configtools.KeyVaultAuthenticationMethod .. autoclass:: cognite.extractorutils.configtools.KeyVaultLoader Base classes ^^^^^^^^^^^^ The ``configtools`` module contains several prebuilt config classes for many common parameters. The class ``BaseConfig`` is intended as a starting point for a custom configuration schema, containing parameters for config version, CDF connection and logging. **Example:** .. code-block:: python @dataclass class ExtractorConfig: state_store: Optional[StateStoreConfig] ... @dataclass class SourceConfig: ... @dataclass class MyConfig(BaseConfig): extractor: ExtractorConfig source: SourceConfig .. BaseConfig: .. autoclass:: cognite.extractorutils.configtools.BaseConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.CogniteConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.EitherIdConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.ConnectionConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.AuthenticatorConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.CertificateConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.LoggingConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.MetricsConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.RawDestinationConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.StateStoreConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.RawStateStoreConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.LocalStateStoreConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.TimeIntervalConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.FileSizeConfig :undoc-members: .. autoclass:: cognite.extractorutils.configtools.ConfigType :undoc-members: Exceptions ^^^^^^^^^^ .. autoexception:: cognite.extractorutils.configtools.InvalidConfigError ``metrics`` - Automatic pushers of performance metrics ------------------------------------------------------ .. automodule:: cognite.extractorutils.metrics :members: :undoc-members: :inherited-members: :show-inheritance: ``statestore`` - Storing extractor state between runs locally or remotely ------------------------------------------------------------------------- .. automodule:: cognite.extractorutils.statestore :members: :undoc-members: :inherited-members: :show-inheritance: ``uploader`` - Batching upload queues with automatic upload triggers -------------------------------------------------------------------- .. automodule:: cognite.extractorutils.uploader :members: :undoc-members: :inherited-members: :show-inheritance: .. automodule:: cognite.extractorutils.uploader._base :members: :undoc-members: :inherited-members: :show-inheritance: .. automodule:: cognite.extractorutils.uploader.assets :members: :show-inheritance: .. automodule:: cognite.extractorutils.uploader.events :members: :show-inheritance: .. automodule:: cognite.extractorutils.uploader.files :members: :show-inheritance: .. automodule:: cognite.extractorutils.uploader.raw :members: :show-inheritance: .. automodule:: cognite.extractorutils.uploader.time_series :members: :show-inheritance: ``util`` - Miscellaneous utilities ---------------------------------- .. automodule:: cognite.extractorutils.util :members: :undoc-members: :inherited-members: :show-inheritance: