pydantic-settings
Settings management using Pydantic
Decision gist · record as of 2026-08-14
Yes. pydantic-settings is actively maintained, has no known vulnerabilities, low install friction, and is part of the widely-adopted Pydantic ecosystem. It's the standard choice for settings management in Pydantic-based applications and is worth installing if you're already using Pydantic or building a Python application that needs environment-based configuration.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low install friction with a pure Python wheel.
- Actively maintained with a release 7 days old and recent commits.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use this freely in commercial and open-source projects with minimal restrictions.
last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 1,412 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 453,025,118 downloads/mo, #89 on PyPI
Alternatives
Verify before relying
pip install pydantic-settings
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
api_key: str
debug: bool = False
settings = Settings()- Whether the package supports custom configuration sources beyond environment variables and dotenv files.
- Performance characteristics when loading large numbers of settings or from remote sources.
- Exact behavior when environment variables conflict with dotenv file values.
What it is and what it does
pydantic-settings is a Pydantic-based configuration management library that reads application settings from environment variables, .env files, and other sources, then validates them against a schema you define. It extends Pydantic's core validation to the settings layer, letting you declare your app's configuration as a typed class and automatically load and validate it at startup.
You define a settings class inheriting from BaseSettings, annotate fields with types and defaults, and the library handles loading from environment variables and dotenv files automatically. This is commonly used in web applications, CLI tools, and services that need environment-specific configuration without manual parsing or type conversion.
Use it for
- Load database connection strings and credentials from environment variables in a web application.
- Manage API keys, feature flags, and debug settings across development, staging, and production environments.
- Read configuration from a .env file during local development and from environment variables in containerized deployments.
- Validate that required settings are present and have the correct type before the application starts.
- Support multiple configuration sources (env vars, dotenv, JSON files) with a single unified schema.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
pydantic-settings is actively maintained, has no known vulnerabilities, low install friction, and is part of the widely-adopted Pydantic ecosystem. It's the standard choice for settings management in Pydantic-based applications and is worth installing if you're already using Pydantic or building a Python application that needs environment-based configuration.
Install
pydantic-settings on PyPI
Before you install
Low install friction with a pure Python wheel. Actively maintained with a release 7 days old and recent commits. Depends on pydantic, python-dotenv, and typing-inspection—all stable, widely-used packages.
Requires Python 3.10 or later.
License in practice
MIT license (permissive) means you can use this freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install pydantic-settings
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
api_key: str
debug: bool = False
settings = Settings()
Verify before relying
- Whether the package supports custom configuration sources beyond environment variables and dotenv files.
- Performance characteristics when loading large numbers of settings or from remote sources.
- Exact behavior when environment variables conflict with dotenv file values.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagespydanticpython-dotenvtyping-inspection |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 453,025,118 / month, #89 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: MacOS XFramework :: PydanticFramework :: Pydantic :: 2Intended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: InternetTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pydantic_settings-2.15.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “settings management pydantic”
- pydantic-settingsLoads and validates application settings from environment variables,…
- pydantic-settings-azure-app-configurationLoads application configuration and secrets from Azure App…
- autodoc_pydanticSphinx extension that automatically generates documentation for…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pydantic-settings-azure-app-configuration · typed-settings · pydantic-ai · environ-config · pydantic-ai-harness · dotenv · pydantic-deep · pydantic-evals · load-dotenv