MFC Configuration Loader streamlines YAML-based configuration management with features such as multi-file support, variables, strong typing, and more.
-
Multiple Configuration Files: Configurations can be separated into multiple files to better organize and segregate them based on environment, purpose, and any other criteria.
-
Variables: Can define variables referencing other configurations or environment variables.
-
Strong Typing: Configurations are loaded into the tuple hierarchy, enabling accessing node properties via dot notation.
pip install mfc-config-loader
Note
Additonal usage examples will be added soon.
# .config.yaml
gcp:
project_id: my-project-id
sa_key_filepath: /path/to/key.json
default_dataset: ${project_id}.my_dataset
# main.py
configs = ConfigLoader().load("gcp")
project_id = configs.project_id
sa_key_file = configs.sa_key_filepath
default_dataset = configs.default_dataset
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.