Skip to main content

Config fun.

Project description

bom-configuration

pipeline

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

bom_configuration-1.0.7-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

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

Hashes for bom_configuration-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8695c5a09dc2b1c346435d5fdf18a4d08e230b2fa9c31a602aaa9529c5cf7aef
MD5 d4748cd708f4ad2aba5fb7cc3ed57f8c
BLAKE2b-256 5a816386ca0272407b7cbe04642890b6e338469885ed844e03492afca696315c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page