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 does it work?
By default, it will load a config file called "application.yaml" stored in "/app/resources".
But you can override :
- the name of the config file
- the extension to JSON
- the path to the directory with the configs files
Also you can define an environment, then 2 files will be loaded :
- the "common" config file - application.yaml
- the "environment" config file - application-[environment].yaml
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)
Configuration 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
Metadata
Release files for adaendra-python-config-loader 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| adaendra_python_config_loader-1.0.0.tar.gz | 16.0 kB | Without provenance | Details for adaendra_python_config_loader-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adaendra_python_config_loader-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for adaendra_python_config_loader-1.0.0-py3-none-any.whl |
Total release size: 33.1 kB
Release files / adaendra_python_config_loader-1.0.0.tar.gz
| Download URL | adaendra_python_config_loader-1.0.0.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11a8c4f23b9901f629aea0c6da396c9bab6270e68c928d347f175ebd86145931
|
|
BLAKE2b-256 checksum How to use checksums |
56d65a10b66625f6ae9ef242e5f8ca32be1bc3806a8ed0eec1d90e430305b5b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
|
Release files / adaendra_python_config_loader-1.0.0-py3-none-any.whl
| Download URL | adaendra_python_config_loader-1.0.0-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c8d522eacd2bf95dbe093f021dd76428627455d224eb8f9e21ff952b5a6cd47
|
|
BLAKE2b-256 checksum How to use checksums |
1471dcd5e88c49cd52b832cc5e99e8323dfd4e75fa7055d76567ed3e673e9c45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
|
Security for adaendra-python-config-loader 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.