A config loader for Python projects
Project description
Python Config Loader
The objective of this library is to easily load external configs for a Python project and use it for anywhere in your project.
How to use it
Install with pip
pip install adaendra-python-config-loader
Import the configs and use it!
from AdaendraConfigs import AdaendraConfigs
print(AdaendraConfigs.configs.abc)
Environment variables
Name | Description | Default value |
---|---|---|
CONFIG_ENVIRONMENT | Environment to load | None |
CONFIG_FOLDER | Path to the config files | '/app/resources' |
CONFIG_FILE_EXTENSION | File extensions of your config file. Allow : '.yml'/'.yaml'/'.json' | '.yaml' |
CONFIG_PROJECT_NAME | Name of your project (which is generally the name of the config files) | 'application' |
Documentation
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
Close
Hashes for adaendra_python_config_loader-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06bc3e4ece073b4d297a27007e229f452bbef82771de15e03e41acbb75a82454 |
|
MD5 | 81855386e9646330a598309c5f2affaf |
|
BLAKE2b-256 | 5c14e3cf893ad5b171085504e44b38bfef754a9027df55c1f4ade5f6a25c718e |
Close
Hashes for adaendra_python_config_loader-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9000c78d137a37a7cfb9b87894c3c12fff1ad925a3320130c9033ecac7539405 |
|
MD5 | 500cff1451e0db4585873d35057c3cc0 |
|
BLAKE2b-256 | 7a67c3eecc1ef95ac0e573be2543dcebcb5242ade9d09a3de423ee9f8a58e6f5 |