| What it is | Read key-value pairs from a .env file and set them as environment variables | A secure dotenv, from the creator of dotenv | Typed Python app settings from environment variables, .env files and secret stores |
| Features | - load_dotenv() sets .env values in os.environ
- dotenv_values() returns values as a dict without changing the environment
- POSIX ${VAR} variable expansion
- multiline values and streams
- IPython extension
- dotenv CLI to set, list and run with a file's variables
| - encrypt .env values with secp256k1
- run any command with decrypted env vars injected
- separate files and keys per environment
- keys in .env.keys, OS keychains, 1Password or Bitwarden
- leak prevention for plaintext secrets
- SDKs for Node.js, Python, Ruby, Rust and PHP
- Armor managed key custody (paid)
- human approvals and audit logs (Armor)
| - BaseSettings classes filled from environment variables
- .env file support
- secrets files and directories (Docker secrets)
- command-line parsing with subcommands
- AWS Secrets Manager, AWS Systems Manager Parameter Store, Azure Key Vault and Google Cloud Secret Manager sources
- YAML, TOML and pyproject.toml sources
- custom source order and custom sources
|