Skip to main content

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

Examples

    >>> 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.

Metadata

Release files for ApplyEnv 1.0.57

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ApplyEnv 1.0.57
File Size Uploaded
ApplyEnv-1.0.57.tar.gz 2.0 kB Details

Release files / ApplyEnv-1.0.57.tar.gz

Download URL ApplyEnv-1.0.57.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4e3118de41a20d35ac5afd9e26bd761d1aec44cc36fea7b760be88df96d1ed01
BLAKE2b-256 checksum
How to use checksums
29ec25ad8d436763fdb31f0d7035ccaadef6015a06e913b8ee7e54d3b4dd92fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release history Release notifications | RSS feed

This release

1.0.57 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page