Skip to main content

Like the dotenv-flow NodeJS library, for Python

Project description

dotenv_flow

Loads different dotenv files based on the value of the PY_ENV variable.

Values in more specific files override previous values.

Files have 2 flavors:

  • public (ex: .env.dev) that should be committed to version control
  • private (ex: .env.dev.local) that has preference over the previous one if present, and should NOT

This is the python version of Node's dotenv-flow

dotenv files are loaded with python-dotenv

This should be added to version control ignore file:

# local .env* files
.env.local
.env.*.local

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

dotenv-flow-0.3.0.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

dotenv_flow-0.3.0-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

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