Skip to content

Plugin for virtualenvwrapper to automatically set environment variables from a .env found in your project's folder as set by virtualenvwrapper's project_path (-a) option.

License

Notifications You must be signed in to change notification settings

capless/eva

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eva

Eva is a fork of Sean Brant's virtualenvwrapper.configvar project. The main difference is eva looks for the .env file in your project's folder as specified by the -a flag. It also has the eva command that will show you a table of the variables from the .env file and what is actually set in the environment.

Install

Eva should be installed outside of a virtualenv in your root site-packages.

pip install eva

Use sudo if your current user does not have permissions to install globally.

>>>sudo pip install eva

Usage

Make sure you have a .env file your project folder

>>>nano /your/project/path/.env
File Format
SECRET_KEY=ADFDAFJKADFLDSKJA
DATABASE_ENGINE=mysql
CACHE_ENGINE=redis

Create a virtualenv with a project folder using the -a flag.

>>>mkvirtualenv <your_env_name> -a /your/project/path/

Make sure your environment variables were set

>>>eva
List of Environment Variables from .env file
+-----------------+-------------------+-------------------+
| Key             | Value             | Environment Value |
+-----------------+-------------------+-------------------+
| SECRET_KEY      | ADFDAFJKADFLDSKJA | ADFDAFJKADFLDSKJA |
| DATABASE_ENGINE | mysql             | mysql             |
| CACHE_ENGINE    | redis             | redis             |
+-----------------+-------------------+-------------------+
Table Legend

Key: The name of the environment variable as set in the .env file and in the environment.

Value: The variable's value as specified in the .env file.

Environment Value: The actual value of the variable in the environment

About

Plugin for virtualenvwrapper to automatically set environment variables from a .env found in your project's folder as set by virtualenvwrapper's project_path (-a) option.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%