.env file handler. required for django, docker, etc
Project description
Installation
$ [sudo] pip install env-file
Classes
class | __doc__ |
---|---|
env_file.EnvFile |
.env file class |
Functions
function | __doc__ |
---|---|
env_file.get(path='.env') |
return a dictionary wit .env file variables |
env_file.load(path='.env') |
set environment variables from .env file |
Examples
.env
DJANGO_SETTINGS_MODULE=project.settings
DB_NAME=dbname
DB_PASS=secret
import env_file
env_file.load('.env')
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 Distribution
env-file-2020.5.9.tar.gz
(2.4 kB
view hashes)