littlenv

A simple script for manage .env in django


Keywords
deploy, env, .env
License
MIT
Install
pip install littlenv==0.1.7

Documentation

Littlenv

A simple script for manage .env in django (or flask), is very easy, you just have to import this library in your manage.py (or your app init file)

Instalation

pip install littlenv

How to use

You can import it and load it before start using or importing any app

from littlenv impot littlenv

littlenv.load(allow_overide=True, path="")
  • The 'allow_override' argument is used to allow the plugin to override existing os.environ variables. If it is False script will skip existing os.environ variables.
  • The 'path' argument is use to specify .env location, when 'path' is empty the .env should in "root" of project

Build Pip Package

https://packaging.python.org/tutorials/packaging-projects/#uploading-your-project-to-pypi