assets_guardian.core.config.app_config

Classes

AppConfig(env,Β version,Β author,Β logging,Β ...)

Representation of the application configuration.

AppEnv(*values)

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: object

Representation 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.

class assets_guardian.core.config.app_config.AppEnv(*values)[source]

Bases: StrEnum