Skip to main content

Run command with specified environment-variable file

Project description

Latest PyPI version Latest Travis CI build status

Run command with specified environment-variable file

Install

pip install envrun-python

Usage

Run specifying environment variables in YAML format:

envrun -f env.yaml "somecmd $SOMEVAR"

Or JSON, or .env format:

envrun -f .env "somecmd $SOMEVAR"

Run within a python virtualenv:

envrun -e .venv pytest

That’s basically it.

Note the .env format parser is taken from python-dotenv.

Contact

Eric Gjertsen.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

envrun-python-0.0.1.tar.gz (4.7 kB view hashes)

Uploaded source

Built Distribution

envrun_python-0.0.1-py3-none-any.whl (7.3 kB view hashes)

Uploaded py3

Supported by

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