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 hashes)

Uploaded Python 3

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