Opinionated environment variable parser for Django
Project description
An opinionated environment variable parser, which focuses on strictness, and doing one thing well. Can be used standalone or with Django.
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_envy-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: django_envy-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
790a41a4a915c6c5022e16ffd5a904e88d0bc88566cfbb2e5c2d551702d60cc2
|
|
| MD5 |
0216bcd870b335818d8e6ad888fc445c
|
|
| BLAKE2b-256 |
ab8144f356dc41c4e0081c1f300a86b4083df76d191714841f25b40f4fdaec19
|