talira

Compare

python-dotenvdotenvxpydantic-settings
What it isRead key-value pairs from a .env file and set them as environment variablesA secure dotenv, from the creator of dotenvTyped Python app settings from environment variables, .env files and secret stores
KindOpen sourceOpen coreOpen source
Trust0.580.720.65
Stars892058921504
Last commit2026-11-092026-11-262026-11-27
LicenceBSD-3-ClauseBSD-3-ClauseMIT
PricingFree and open sourceFree tier, from $5/monthFree and open source
Free tierYesYesYes
Self-hostable—Yes—
Ways to run it—
  • dotenvx (open source) (self-hosted, BSD-3-Clause): free
    You arrange: somewhere safe for the private keys
  • Dotenvx Armor: Member $5/month, Business $90/month
—
SOC 2———
HIPAA———
SSO———
API—Yes—
Plugins—No—
MCP server———
CompanySaurabh KumarDotenvxPydantic
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
Limitations
  • Needs Python 3.10 or later
  • Only ${VAR} is expanded: bare $VAR references are left as they are