AutoDotEnv is a simple tool to automatically set environment variables from a
.env
file when running any Python command.
pip install AutoDotEnv
- Install your Python-based tools of choice that can be configured via environment variables (e.g.
awscli
,ansible
). - Create a
.env
file in the current directory values set to configure the installed tools. - Run your installed tools and environment variables will be set automatically from the
.env
file.
- Configure AutoDotEnv options via environment variables.
- Configure AutoDotEnv options via a config file.
- Load variables from file patterns other than
.env
. - Load variables only for certain Python scripts/tools.