# pydantic/pydantic-settings

Settings management using pydantic

Repository: https://github.com/pydantic/pydantic-settings
Canonical: https://ross.abutalabs.com/products/pydantic-settings
Homepage: https://pydantic.dev/docs/validation/latest/concepts/pydantic_settings/
Language: Python
License: MIT
License Family: permissive
Topics: pydantic, configuration, environment, python, settings
Last push: 2026-08-23T21:19:07+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 84, longevity 100
- inputs: {"age_days": 1456, "days_push": 10, "days_rel": 26, "gap_med": 38.5, "n_releases_24m": 21}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1433, forks 179 (observed 2026-08-28T04:04:43.267047+00:00)

## What it is
pydantic-settings is a Python library for managing application settings and configuration using Pydantic models. It loads type-validated settings from environment variables, .env files, and secrets directories, with support for aliases, defaults, and manual overrides.

## Use cases
- load app configuration from environment variables with type validation
- manage settings via .env files in a python project
- validate environment variables against a typed config class
- override settings in unit tests
- load secrets from files or directories
- define a 12-factor app configuration in python

## When to choose
- you already use Pydantic and want validated, type-hinted configuration
- you need settings sourced from env vars, dotenv files, or secrets directories
- you want clear validation errors pointing at misconfigured environment values

## When to avoid
- you need a full configuration system with dynamic reload or remote config stores
- your project doesn't use Python or the Pydantic ecosystem
- you only need simple key-value parsing without validation

## Facets
- artifact type: library
- maturity: active
- function: configuration-management, serialization, developer-tools
- domain: developer-tools, backend, web-development
- platform: python, cross-platform
- tags: pydantic, environment-variables, settings, dotenv, type-hints, config-validation, secrets-files

## Member repositories
- pydantic/pydantic-settings (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:43.267047+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:58.188817+00:00, confidence not recorded.
  - readme: https://github.com/pydantic/pydantic-settings (fetched 2026-08-28T04:04:43.267047+00:00, sha a1b2df6ed6ba)
  - homepage: https://pydantic.dev/docs/validation/latest/concepts/pydantic_settings/ (fetched 2026-08-29T11:48:12.003315+00:00, sha 136f624831a1)
  - site_page: https://pydantic.dev/docs (fetched 2026-08-29T11:48:12.014843+00:00, sha 8fbf5785f930)
  - site_page: https://pydantic.dev/docs/validation/latest/get-started (fetched 2026-08-29T11:48:12.016755+00:00, sha 45a18505182c)
  - site_page: https://pydantic.dev/docs/ai (fetched 2026-08-29T11:48:12.018503+00:00, sha 5a0acbe090de)
  - site_page: https://pydantic.dev/docs/logfire (fetched 2026-08-29T11:48:12.020733+00:00, sha 44d3778fd335)
  - site_page: https://pydantic.dev/docs/httpx2/get-started (fetched 2026-08-29T11:48:12.022370+00:00, sha 9e483eaace82)
  - site_page: https://pydantic.dev/docs/monty/get-started (fetched 2026-08-29T11:48:12.024083+00:00, sha 10df026bf6ec)
  - site_page: https://pydantic.dev/docs/validation/latest/get-started/why (fetched 2026-08-29T11:48:12.025738+00:00, sha a2b06a019519)
  - site_page: https://pydantic.dev/docs/validation/latest/get-started/help_with_pydantic (fetched 2026-08-29T11:48:12.029278+00:00, sha 4168e4d83159)
- Data as of 2026-08-30T08:39:29.467469+00:00.
