Skip to main content

Environment Variables for Humans

Project description

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': ...}

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

env-0.1.0.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file env-0.1.0.tar.gz.

File metadata

  • Download URL: env-0.1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for env-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e07975087b08dd2aea45bf83447c7e21f43cf916bbc2a0722fceb66e54d03935
MD5 cf9d8a6e3570b24f885e06558943a6ed
BLAKE2b-256 f46797052e313f44543fadca265228f527c5394385916a13eb8b7932d7dad490

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