Pydantic
Data validation using Python type hints observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 99
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 7.5
- age_days: 3409
- days_rel: 119
- days_push: 7
- n_releases_24m: 37
Adoption not part of the score
28626 stars · 2901 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Pydantic is the most widely used data validation library for Python, defining schemas via type hints and validating, parsing, and serializing data with a Rust-powered core (pydantic-core). It also emits JSON Schema and supports strict/lax validation modes, dataclasses, and TypedDicts.
Use cases
- validate api request payloads against python type hints
- parse untrusted json into typed models
- generate json schema from python classes
- serialize and deserialize dataclasses and typeddicts
- validate settings and environment configuration
- coerce string data into typed fields with lax mode
- enforce field constraints with annotated types
When to choose
- you want schema validation driven by python type hints with ide and mypy integration
- you need fast validation - the core is written in rust
- you're building fastapi, sqlmodel, or langchain apps where pydantic is the standard
- you need json schema output for tool integration
- you want both strict and coercive (lax) validation modes
When to avoid
- you need validation in a non-python language
- you're on python 3.8 or older
- you want zero compiled dependencies - pydantic-core ships rust binaries
- you're migrating a large v1 codebase without time to handle v2 breaking changes
Facets
library · maturity stable
serialization parser json data-science developer-tools apis web-development python cross-platform data-validation type-hints json-schema pydantic-core rust fastapi-ecosystem schema-validation parsing data-engineering
10 sources
- readme: https://github.com/pydantic/pydantic · fetched 2026-08-28 · e42c4364bdb7
- homepage: https://pydantic.dev/docs/validation · fetched 2026-08-29 · 45a18505182c
- site_page: https://pydantic.dev/docs · fetched 2026-08-29 · 8fbf5785f930
- site_page: https://pydantic.dev/docs/ai · fetched 2026-08-29 · 5a0acbe090de
- site_page: https://pydantic.dev/docs/logfire · fetched 2026-08-29 · 44d3778fd335
- site_page: https://pydantic.dev/docs/httpx2/get-started · fetched 2026-08-29 · 9e483eaace82
- site_page: https://pydantic.dev/docs/monty/get-started · fetched 2026-08-29 · 10df026bf6ec
- site_page: https://pydantic.dev/docs/validation/latest/get-started/why · fetched 2026-08-29 · a2b06a019519
- site_page: https://pydantic.dev/docs/validation/latest/get-started/help_with_pydantic · fetched 2026-08-29 · 4168e4d83159
- site_page: https://pydantic.dev/docs/validation/latest/get-started/install · fetched 2026-08-29 · 107902a90128
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pydantic/pydantic | main | 94 |
| pydantic/pydantic-core | backend | 10 |
For agents
markdown · JSON · MCP: product_card(name="pydantic/pydantic")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem