Skip to main content
https://img.shields.io/travis/onjin/runenv.svg https://img.shields.io/pypi/v/runenv.svg https://img.shields.io/badge/license-New%20BSD-blue.svg https://img.shields.io/pypi/dm/runenv.svg

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

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

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

runenv-0.1.4.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runenv-0.1.4-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2Python 3

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

Hashes for runenv-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f626222112ca69b821651a95f5c03b97beb112e365501da1cb7f65c2da80cdad
MD5 7e4c40b11972f06b8d4910cdb2e3696d
BLAKE2b-256 9640786bc00ac004d49087c96575e17881c25579af0e61bdccbf136ed66cf541

See more details on using hashes here.

File details

Details for the file runenv-0.1.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for runenv-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cefad7388dad9de4c6045e184dec26e8e20b34317daf44d1663006913b36684f
MD5 310f9227673178620201fed3646a338d
BLAKE2b-256 1c3111bed47c80d02481ff17c93e22230cbaac438447d2caad913e9f0fd0e7eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page