Skip to main content

Tools for exconverting environment variables to native python objects

Project description

https://badge.fury.io/py/env-excavator.png https://travis-ci.org/simpleenergy/env-excavator.png?branch=master

Tools for exconverting environment variables to native python objects

Quickstart

Install env-excavator:

pip install env-excavator

Example use it in a project:

>>> import os
>>> import excavator as env
>>> os.environ['FROM_EMAIL'] = 'admin@example.com'
>>> env.get('FROM_EMAIL')
'admin@example.com'
>>> os.environ['DEBUG'] = 'True'
>>> env.get('DEBUG', type=bool)
True
>>> os.environ['ALLOWED_HOSTS'] = '.example.com,.example.net'
>>> env.get('ALLOWED_HOSTS', type=list)
['.example.com', '.example.net']

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
env_excavator-1.5.0-py2.py3-none-any.whl (5.0 kB) Copy SHA256 hash SHA256 Wheel 2.7
env-excavator-1.5.0.tar.gz (4.9 kB) Copy SHA256 hash SHA256 Source None

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