Skip to main content

Mapping environment variables can be a bit of a pain.

Now you can replace this boilerplate:

ZENDESK_URL = os.environ['ZENDESK_URL']
ZENDESK_USER = os.environ['ZENDESK_USER']
ZENDESK_PASS = os.environ['ZENDESK_PASS']
ZENDESK_VIEW = os.environ['ZENDESK_VIEW']

With a simple call:

import env
>>> zendesk = env.prefix('zendesk_')
>>> zendesk
{'user': ..., 'pass': ..., 'url': ..., 'view': ...}

Or have a bit more control:

>>> env.map(user='zendesk_user')
{'user': ...}

Release files for env 0.1.0

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

Source distribution (sdist)

Source distribution for env 0.1.0
File Size Uploaded
env-0.1.0.tar.gz 1.8 kB Details

Release files / env-0.1.0.tar.gz

Download URL env-0.1.0.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e07975087b08dd2aea45bf83447c7e21f43cf916bbc2a0722fceb66e54d03935
BLAKE2b-256 checksum
How to use checksums
f46797052e313f44543fadca265228f527c5394385916a13eb8b7932d7dad490
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

0

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