skillfed

pydantic

Data validation using Python type hints

pydantic Permissive license MIT Active v2.13.4 released

Install

pydantic on PyPI

pip

pip install pydantic

uv

uv add pydantic

poetry

poetry add pydantic

Package 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

Development Status :: 5 - Production/StableFramework :: HypothesisFramework :: PydanticIntended Audience :: DevelopersIntended Audience :: Information TechnologyOperating System :: OS IndependentProgramming 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.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: InternetTopic :: Software Development :: Libraries :: Python Modules

About pydantic

from the package's own PyPI description — quoted content, verbatim

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.
python data validationtype hint validationschema validation libraryjson parsing validationapi request validationconfiguration validationdataclass validation

Similar packages