Streamlines access and management of YAML-based configurations
Project description
MFC Configuration Loader
Introduction
MFC Configuration Loader streamlines YAML-based configuration management with features such as multi-file support, variables, strong typing, and more.
Features
-
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.
Installation
pip install mfc-config-loader
Usage
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
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mfc-config-loader-0.0.5.tar.gz.
File metadata
- Download URL: mfc-config-loader-0.0.5.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdbd09ed8c84b94978dfacbb33f7b200fb5ca171eb6661cb53c2777100ddcb94
|
|
| MD5 |
6c88f08ee079ae0092476b00ebb04a00
|
|
| BLAKE2b-256 |
537b3a50a7597d1b36f4c512e14cda57c1ce68fda41bf3487a5ffed1839f19a8
|
File details
Details for the file mfc_config_loader-0.0.5-py3-none-any.whl.
File metadata
- Download URL: mfc_config_loader-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e002db0281f3894e99717b998ecb669b407359a0a714e8e754e4f79b771d315b
|
|
| MD5 |
582d6bac21999cf0aa4b572fb37e9683
|
|
| BLAKE2b-256 |
be5865b6af88c6dfb56c6d7117eaff4f078d2374b15529510b1f9b58a5951a0c
|