A good SQLian like a good shepherd.
Project description
Run command with environment variables populated by python-dotenv.
Installation
If using Pipenv:
pipenv install --dev python-dotenv-run
Otherwhise:
pip install python-dotenv-run
Instruction onwards assumes you use Pipenv. If you do not, simply drop the pipenv run prefix in all commands.
Usage
Say you have a Flask app in a file named webapp.py:
import flask app = flask.Flask(__name__) @app.route('/') def hello(): return "Hello World!"
Add a file named .env alongside with the project:
FLASK_APP=webapp.py
After installing dependencies, you can run it like this:
pipenv run dotenv-run flask run
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
Built Distribution
Close
Hashes for python_dotenv_run-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d4b5455bc83d424a1ea10a5b36c48b03c1a1c3fbfaf016aeaec32870e8043a3 |
|
MD5 | 126c6f8217fa3628b5225cf672ca5bdd |
|
BLAKE2b-256 | 70959ca6620b90a819e56400135a7fa46cc63b481605161135a3a16905e84b10 |