haniwers.v1.config.loader#
Module Contents#
Classes#
Loader class to locate and load a valid HaniwersConfig from TOML files. |
Functions#
Convenience function to retrieve the default config path. |
API#
- class haniwers.v1.config.loader.ConfigLoader(config_path: Optional[pathlib.Path] = None)#
Loader class to locate and load a valid HaniwersConfig from TOML files.
Initialization
- property config: haniwers.v1.config.model.HaniwersConfig#
Returns the loaded and validated configuration object.
- _load_file(path: pathlib.Path) haniwers.v1.config.model.HaniwersConfig#
- classmethod get_default_config_path() pathlib.Path#
Search for a config file in standard locations and return the first match.
- _apply_env_overrides() None#
Override config values from environment variables if set.
- haniwers.v1.config.loader.get_default_config_path() pathlib.Path#
Convenience function to retrieve the default config path.