talira

Compare

pydantic-settingspython-dotenv
What it isTyped Python app settings from environment variables, .env files and secret storesRead key-value pairs from a .env file and set them as environment variables
KindOpen sourceOpen source
Trust0.650.58
Stars15048920
Last commit2026-11-272026-11-09
LicenceMITBSD-3-Clause
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostable——
Ways to run it——
SOC 2——
HIPAA——
SSO——
API——
Plugins——
MCP server——
CompanyPydanticSaurabh Kumar
Features
  • 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
  • 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
Limitations
    • Needs Python 3.10 or later
    • Only ${VAR} is expanded: bare $VAR references are left as they are