Config fun.
Project description
bom-configuration
Welcome to bom-configuration. This is an opinionated configuration library that will build a configuration from environment variables, command line arguments, local files, and global files.
usage
To start, you must define the environment you are using. The available environments are dev, qa, and prod. If you do not define an environment, you will receive an error.
>>> from bom.configuration import load
>>> load()
...
ValueError: `ENV` environment variable must be specified.
$ export ENV=dev
>>> from bom.configuration import load
>>> conf = load()
{'bom': {'configuration': {'version': '1.0.0'}}}
To modify the configuration, create a bom.conf.json file in the python library or create it inside the working directory of the application.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 bom_configuration-1.0.7-py3-none-any.whl.
File metadata
- Download URL: bom_configuration-1.0.7-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8695c5a09dc2b1c346435d5fdf18a4d08e230b2fa9c31a602aaa9529c5cf7aef
|
|
| MD5 |
d4748cd708f4ad2aba5fb7cc3ed57f8c
|
|
| BLAKE2b-256 |
5a816386ca0272407b7cbe04642890b6e338469885ed844e03492afca696315c
|