https://github.com/ericgj/envrun-python
Run command given environment-variable file and optional python virtualenv
https://github.com/ericgj/envrun-python
Last synced: 2 months ago
JSON representation
Run command given environment-variable file and optional python virtualenv
- Host: GitHub
- URL: https://github.com/ericgj/envrun-python
- Owner: ericgj
- License: other
- Created: 2019-08-10T23:41:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-11T00:47:58.000Z (almost 7 years ago)
- Last Synced: 2025-02-16T20:36:26.994Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
envrun-python
=============
.. image:: https://img.shields.io/pypi/v/envrun-python.svg
:target: https://pypi.python.org/pypi/envrun-python
:alt: Latest PyPI version
.. image:: https://travis-ci.org/ericgj/envrun-python.png
:target: https://travis-ci.org/ericgj/envrun-python
:alt: 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 arg1 arg2
Or JSON, or .env format::
envrun -f .env somecmd arg1 arg2
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 `_.