pydantic
Data validation using Python type hints
Install
pydantic on PyPI
pip
pip install pydanticuv
uv add pydanticpoetry
poetry add pydanticPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — annotated-types, pydantic-core, typing-extensions, typing-inspection |
| Maintenance | actively maintained — 99 days since the last release |
| First released | |
| Popularity | one of the 100 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: pydantic-2.13.4-py3-none-any.whl
About pydantic
from the package's own PyPI description — quoted content, verbatim
Pydantic Validation
CI (image) Coverage (image) pypi (image) CondaForge (image) downloads (image) versions (image) license (image) [![Pydantic...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Pydantic validates Python data structures against type hints, converting and coercing input to match declared schemas with minimal boilerplate. It powers data parsing, API request/response validation, and configuration management across Python 3.9+.
Low friction: pure wheel distribution, only four runtime dependencies (annotated-types, pydantic-core, typing-extensions, typing-inspection), all lightweight. Active maintenance with 99 days since last release and production-stable status.
MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal obligations—only attribution required.
Usage
pip install pydantic
from pydantic import BaseModel
from datetime import datetime
from typing import Optional
class User(BaseModel):
id: int
name: str = 'John Doe'
signup_ts: Optional[datetime] = None
user = User(id='123', signup_ts='2017-06-01 12:22')
print(user.id, user.signup_ts)
Requires Python 3.9 or later; pydantic-core (compiled Rust dependency) requires a compatible platform.
Verdict: Pydantic 2.13.4 is a mature, actively maintained validation library in the top 100 PyPI packages with zero known vulnerabilities, permissive MIT licensing, and minimal install friction. Recommended for production use in data validation, API frameworks, and configuration management.
Needs verification
- Whether pydantic-core's Rust compilation adds meaningful install time on less common platforms (e.g., Alpine, ARM).
- Performance characteristics compared to alternatives for very large or deeply nested data structures.
Similar packages
permissive · top 1,000 on PyPI
pydantic-settingspermissive · top 100 on PyPI
httpx2permissive · top 1,000 on PyPI
pydantic_corepermissive · top 100 on PyPI
typing-inspectionpermissive · top 100 on PyPI
logfire-apipermissive · top 1,000 on PyPI
pydantic-ai-slimpermissive · top 1,000 on PyPI
jiterpermissive · top 1,000 on PyPI
pydantic-graphpermissive · top 1,000 on PyPI
dacitepermissive · top 1,000 on PyPI