Skip to main content

Easy access to 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
magic

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.

Source Distribution

o3-0.2.1.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file o3-0.2.1.tar.gz.

File metadata

  • Download URL: o3-0.2.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for o3-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a85d5df06e6542f303db68fd1341822a95855f2cb47e32e6fce6bc35373b01ca
MD5 35a63b0222eb2dc9bbe4a348e68c8143
BLAKE2b-256 fff34f8ddf5c056c7adc53370631f67279eb4c9c91948ad94721fc89d906e611

See more details on using hashes here.

Provenance

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