app_config
¶
Configuration management for Music Genre Updater.
Config
¶
Configuration manager for the application.
Handles config file discovery (env var, defaults) and delegates
YAML loading + Pydantic validation to core.core_config.load_config.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config_path
|
str | None
|
Path to the configuration file (use default if None) |
None
|
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If no configuration file is found. |
Source code in src/app/app_config.py
load
¶
Load configuration from the file.
Returns:
| Type | Description |
|---|---|
AppConfig
|
Validated AppConfig Pydantic model. |
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If the configuration file cannot be loaded or parsed. |