Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ericgj/envrun-python
Run command given environment-variable file and optional python virtualenv
https://github.com/ericgj/envrun-python
Last synced: about 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-11T00:47:58.000Z (over 5 years ago)
- Last Synced: 2024-10-31T14:31:36.725Z (2 months 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 statusRun 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 `_.