Skip to main content

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:

Metadata

Release files for django-envy 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for django-envy 0.1.1
File Interpreter ABI Platform
django_envy-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / django_envy-0.1.1-py2.py3-none-any.whl

Download URL django_envy-0.1.1-py2.py3-none-any.whl
Size 7.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
790a41a4a915c6c5022e16ffd5a904e88d0bc88566cfbb2e5c2d551702d60cc2
BLAKE2b-256 checksum
How to use checksums
ab8144f356dc41c4e0081c1f300a86b4083df76d191714841f25b40f4fdaec19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page