Skip to main content

reads .env files into os.environ

Project description

Latest version Travis-CI

read_env reads .env.


pip install read_env


Add variables to a .env file in your project.

# myapp/.env

Call read_env to add the variables to os.environ.

# myapp/
import os
from read_env import read_env


assert os.environ['DEBUG'] == 'true'
assert int(os.environ['PORT']) == 5000



Project details

Download files

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

Files for read_env, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size read_env-1.0.0-py2.py3-none-any.whl (3.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size read_env-1.0.0.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

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