Wrapper to run programs with modified environment variables loaded from given file. You can use runenv to manage your app settings using 12-factor principles.
You can use same environment file with runenv and with docker using env-file parameter
Free software: BSD license
Documentation: https://runenv.readthedocs.org.
Installation
In order to install use pip:
$ pip install -U runenv
Usage
Run from shell:
$ runenv env.development ./manage.py runserver
example env.development file:
BASE_URL=http://127.0.0.1:8000 DATABASE_URI=postgres://postgres:password@localhost/dbname SECRET_KEY=y7W8pbRcuPuAmgTHsJtEpKocb7XPcV0u # email settings EMAIL_HOST=smtp.mandrillapp.com EMAIL_PORT=587 EMAIL_HOST_USER=someuser EMAIL_HOST_PASSWORD=hardpassword EMAIL_FROM=dev@local.host EMAIL_USE_TLS=1
Similar projects
https://github.com/jezdez/envdir - runs another program with a modified environment according to files in a specified directory
https://github.com/theskumar/python-dotenv - Reads the key,value pair from .env and adds them to environment variable
History
0.1.4 (2015-06-15)
Check if file to run exists and is executable
0.1.3 (2015-06-01)
Support for env file comments by ‘#’
0.1.2 (2015-06-01)
Return code from runned command
0.1.1 (2015-05-31)
First release on PyPI.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runenv-0.1.4.tar.gz.
File metadata
- Download URL: runenv-0.1.4.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f626222112ca69b821651a95f5c03b97beb112e365501da1cb7f65c2da80cdad
|
|
| MD5 |
7e4c40b11972f06b8d4910cdb2e3696d
|
|
| BLAKE2b-256 |
9640786bc00ac004d49087c96575e17881c25579af0e61bdccbf136ed66cf541
|
File details
Details for the file runenv-0.1.4-py2.py3-none-any.whl.
File metadata
- Download URL: runenv-0.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cefad7388dad9de4c6045e184dec26e8e20b34317daf44d1663006913b36684f
|
|
| MD5 |
310f9227673178620201fed3646a338d
|
|
| BLAKE2b-256 |
1c3111bed47c80d02481ff17c93e22230cbaac438447d2caad913e9f0fd0e7eb
|