Skip to main content

Populate variables in a tree-like schema

Project description

Applies values from a flat dict ("environment") to a tree-like structure ("schema").


    >>> from applyenv import apply
    >>> schema = dict(a="A", b=dict(c="C"))
    >>> environ = dict(A=3, C=5)
    >>> apply(schema, environ)
    {'a': 3, b: {'c': 5}} 

Note: feel free to use os.environ to populate env values directly into your schema.

Project details

Release history Release notifications

Download files

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

Files for ApplyEnv, version 1.0.57
Filename, size File type Python version Upload date Hashes
Filename, size ApplyEnv-1.0.57.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page