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.
Release files for bom-configuration 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bom_configuration-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Release files / bom_configuration-1.0.7-py3-none-any.whl
| Download URL | bom_configuration-1.0.7-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8695c5a09dc2b1c346435d5fdf18a4d08e230b2fa9c31a602aaa9529c5cf7aef
|
|
BLAKE2b-256 checksum How to use checksums |
5a816386ca0272407b7cbe04642890b6e338469885ed844e03492afca696315c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|