miped / django-envy

An opinionated environment parser for python and django

Home Page:http://django-envy.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-envy

An opinionated environment variable parser, which focuses on strictness, and doing one thing well. Can be used standalone or with Django.

Build status of the master branch Code coverage of the master branch Package license Latest version released on PyPi Build status of documentation

Why another environment parser?

Coming Soon

Documentation

Coming Soon

Installation

Install from PyPI with pip:

$ pip install django-envy

Usage

Use django-envy to read and cast environment variables in your django settings:

from envy import env

DEBUG = env.bool('DEBUG', default=False)  # True if os.environ['DEBUG'] == 'true', defaults to False
TEMPLATE_DEBUG = DEBUG

SECRET_KEY = env('SECRET_KEY')  # Will raise ImproperlyConfigured if SECRET_KEY is not in os.environ

License

Django-envy is licensed under the MIT license. See LICENSE

Release History

See CHANGELOG.rst

Acknowledgments

Django-envy takes inspiration from multiple sources and packages:

About

An opinionated environment parser for python and django

http://django-envy.readthedocs.io/

License:MIT License


Languages

Language:Python 100.0%