$npx skillfedfor your agent

pydantic-settings

Settings management using Pydantic

Worth itPyPI Python ModulesReleased Aug 2026453.0M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pydantic_settings-2.15.0-py3-none-any.whl
v2.15.0 · released 2026-08-07 · Python >=3.10 · 3 runtime deps: pydantic, python-dotenv, typing-inspection

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

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.
Same gist for agents: .md · .json

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.

Worth 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

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
pydanticpython-dotenvtyping-inspection
MaintenanceActively maintained 7 days since the last release
Last repo commit
First released
Downloads453,025,118 / month, #89 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
environment variable configurationsettings management pydanticdotenv configuration loaderapplication config validationenvironment-based settingspydantic settingsconfig from env vars
Topics
configuration-managementenvironment-variablespydantic-ecosystem

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also pydantic-settings-azure-app-configuration · typed-settings · pydantic-ai · environ-config · pydantic-ai-harness · dotenv · pydantic-deep · pydantic-evals · load-dotenv