Skip to main content

Comfotly and quickly access environment variables

Project description

The quick summary:

Ozone or trioxide, is an allotrope of Oxygen. It’s found in the higher atmosphere, and can also be smelled after rain. Ozone configuration library is meant to be used when building cloud native applications (or 12 Factor applications).

Usually these application are configured with environment variables. These in turn are constants usually typed as SOME-VARIABLE. To read this in Python you would do this:

>>> import os
>>> os.getenv("SHIFTSOME_VARIABLE")

I got tired of this and I want to access SOME-VARIABLE as an attribute, so:

export SOME_VARIABLE=magic

>>> from o3 import Config
>>> c = Config()
>>> c.some_variable

Notice, access is done via attribue instead of dictionary lookup.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for o3, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size o3-0.2.0.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page