Working with Environment Variables - BKJackson/BKJackson_Wiki GitHub Wiki

python-dotenv

python-dotenv - Reads the key-value pair from .env file and adds them to environment variable. It is great for managing app settings during development and in production using 12-factor principles.

direnv

direnv -- unclutter your .profile - direnv is an extension for your shell. It augments existing shells with a new feature that can load and unload environment variables depending on the current directory.
Use cases for direnv:

  • Load 12factor apps environment variables
  • Create per-project isolated development environments
  • Load secrets for deployment

autoenv

Autoenv: Directory-based Environments - Magic per-project shell environments. Very pretentious.