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.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9bc814bf8a11a4a411f6076cb92c7f25c17bab125599923b6a63910f92a6ba9 |
|
MD5 | 820518838e1808d10f88c097b80ae241 |
|
BLAKE2b-256 | 9a0ff31f7f88ad38ceac817c1ba77bcd9f6872bf9d0b57c76111eb694f32cf33 |
Close
Hashes for adaendra_python_config_loader-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adaea925db8e44d7b47ac379d93df75f8163612be2f38f1495d65f9de2c7657e |
|
MD5 | ea11e0dd1d84a0dec8d34ee29b5aaa31 |
|
BLAKE2b-256 | 0ab464f4e2623b1cc4b8f25dd03ee1ae9cc8efe094f5873f0b05c86c088f50ba |