Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A tool for configuring your application via environment variables

Project Description


A tool for configuring your application via environment variables


Gets configuration from environment variables that start with app_name optionally allowing you to load the environment variables as json

Example with load_as_json=True

from env_config import get_envvar_configuration

# Assuming that there are the following environment variables
# MYAPP_BOOL=false
# MYAPP_DICT={"some_key": "some_value"}
# MYAPP_STRING=blahblahblah
# NOTMYAPP_VARIABLE=this wont be recognized

config = get_envvar_configuration('myapp')

# prints out {'BOOL': False, 'DICT': {'some_key': 'some_value'}, 'STRING': 'blahblahblah'}

Example with load_as_json=False

config = get_envvar_configuration('myapp', load_as_json=False)

# prints out {'BOOL': 'false', 'DICT': '{"some_key": "some_value"}', 'STRING': 'blahblahblah'}


This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.


0.1.0 (2016-07-11)

  • First release on PyPI.

Release History

This version
History Node


History Node


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
(4.8 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 Jul 11, 2016
(12.2 kB) Copy SHA256 Hash SHA256
Source None Jul 11, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers