# pydantic-settings

> Typed Python app settings from environment variables, .env files and secret stores

Source: https://talira.ai/catalog/pydantic-settings-24kkfv29
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / configuration](https://talira.ai/categories/libraries/configuration), [languages / python](https://talira.ai/categories/languages/python)
- Licence: MIT[^2][^3]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Backed by: [Pydantic](https://talira.ai/orgs/pydantic.md)

pydantic-settings adds settings management to [Pydantic](https://talira.ai/catalog/pydantic-5as3qf1q.md): a class that inherits from BaseSettings fills its fields from environment variables, .env files and secrets files, and validates them against their types, so a bad value fails with a validation error naming the setting. It also reads from the command line, pyproject.toml and, with optional extras, AWS Secrets Manager, AWS Systems Manager Parameter Store, Azure Key Vault and Google Cloud Secret Manager, and the order of these sources can be changed or extended.

## Links

- GitHub: https://github.com/pydantic/pydantic-settings
- Docs: https://pydantic.dev/docs/validation/latest/concepts/pydantic_settings/

## Problems it solves

- load my Python app's configuration from environment variables with types checked
- read settings from a .env file and Docker secrets into one typed config object
- pull secrets from AWS Secrets Manager or Azure Key Vault into my Python settings

## 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

## Trust

Overall: 0.65 out of 1.
Signals: maintenance 1.00, adoption 0.64, momentum 0.45, community 0.86, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 92 commits in the last 90 days
- latest release v2.16.3 16 days ago
- 1.5k GitHub stars
- 138 contributors
- accepts sponsorship (Github)
- backed by Pydantic

## Related

- Based on [Pydantic](https://talira.ai/catalog/pydantic-5as3qf1q.md)

## Alternatives

- [python-dotenv](https://talira.ai/catalog/python-dotenv-xnw2w6rp.md): Read key-value pairs from a .env file and set them as environment variables

## Sources

[^1]: https://pydantic.dev/docs/validation/latest/concepts/pydantic_settings/ (checked 29 Nov 2026)
[^2]: https://github.com/pydantic/pydantic-settings/blob/main/LICENSE (checked 29 Nov 2026)
[^3]: https://github.com/pydantic/pydantic-settings/blob/main/pyproject.toml (checked 29 Nov 2026)
