assets_guardian.core.config.app_configο
Classes
|
Representation of the application configuration. |
|
- class assets_guardian.core.config.app_config.AppConfig(env: ~assets_guardian.core.config.app_config.AppEnv, version: str, author: ~assets_guardian.core.config.author_config.AuthorConfig, logging: ~assets_guardian.core.config.logging_config.LoggingConfig, integrations: dict[str, ~typing.Any], paths: ~assets_guardian.core.config.paths_config.PathsConfig, cache: ~assets_guardian.core.config.cache_config.CacheConfig, notification_emails: list[str] = <factory>, dry_run_enabled: bool = False)[source]ο
Bases:
objectRepresentation of the application configuration.
- Variables:
env (AppEnv) β Application environment.
version (str) β Application version.
author (AuthorConfig) β Application author identity (fullname and email required).
notification_emails (list[str]) β Recipient emails for audit notifications, if configured.
logging (LoggingConfig) β Logging configuration.
integrations (dict[str, Any]) β Integrations configuration.
paths (PathsConfig) β File paths configuration.
dry_run_enabled (bool) β Indicates if dry-run mode is enabled.
- classmethod create_from_dict(raw_config: dict[str, Any], config_path: str = 'config/config.yml') AppConfig[source]ο
Converts a raw dictionary into a strongly typed AppConfig object. Assumes the configuration has been validated.
- Parameters:
raw_config β Dictionary containing raw configuration data.
config_path β Path to the configuration file.
- Returns:
An initialized AppConfig instance.