Skip to main content

Pyhton-Dotenv-Run

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

Release files for python-dotenv-run 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-dotenv-run 0.1.4
File Size Uploaded
python-dotenv-run-0.1.4.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-dotenv-run 0.1.4
File Interpreter ABI Platform
python_dotenv_run-0.1.4-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 6.7 kB

Release files / python-dotenv-run-0.1.4.tar.gz

Download URL python-dotenv-run-0.1.4.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
423a16442499726f7ecacd079d3f5dad43cfec181d39b7dd522ae58d08c58687
BLAKE2b-256 checksum
How to use checksums
16c59b832e6b227c694304f44a19256022c4e032e2db2ee9825ebe6dbc9beb6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_dotenv_run-0.1.4-py2.py3-none-any.whl

Download URL python_dotenv_run-0.1.4-py2.py3-none-any.whl
Size 4.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
792391893aaf5236a1a0364f14e42d2d3d9175fa2b3f30b3d8ffee316e6f3005
BLAKE2b-256 checksum
How to use checksums
26370a5e0a48c65b10ea66cc6a0e5c0a4ebe08ad1919ec09d33bf1a2c4ae7421
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page