Pydantic

Summary

Pydantic is a popular data validation library for Python that simplifies the creation of production-grade applications with generative AI through its agent framework, PydanticAI.

Type
Agentic Pull Requests
image

PydanticAI is an agent framework to make it less painful to build production grade applications with generative AI.

Learn moreLearn more

> pip install pydantic-ai

Respected builders of open source, for Python & beyond

Pydantic is built on the pillars of open source: transparency, collaboration and excellence. Our origins inform every product we craft. Whether it’s a community project or enterprise solution, developer experience is our cornerstone.

Explore open source packages

from datetime import datetime
from typing import Tuple

from pydantic import BaseModel

class Delivery(BaseModel):
    timestamp: datetime
    dimensions: Tuple[int, int]

m = Delivery(timestamp='2020-01-02T03:04:05Z', dimensions=['10', '20'])
print(repr(m.timestamp))
#> datetime.datetime(2020, 1, 2, 3, 4, 5, tzinfo=TzInfo(UTC))
print(m.dimensions)
#> (10, 20)

pydantic

pydantic

The most popular data validation library for Python

view in github

PydanticAI

Agent Framework / shim to use Pydantic with LLMs

view in github

jiter

The fast, iterable JSON parser

see more

arq

Fast job queuing and RPC in Python

see more

speedate

Date, time and duration parsing for Rust

see more

The Pydantic Library is used and trusted by some of the biggest organizations in the world β€” and millions of individual developers, too.

We use Pydantic across key parts of our research and products, and it has accelerated our work considerably.

Atty Eleti Member of Technical Staff at OpenAI

OUR MISSION

Driven by curiosity, frustration and coffee

Learn more about the creators of Pydantic, our mission and open source ethos. And see how you can get involved.

about us

Our articles

/Pydantic

The Eval has landed πŸ¦…

Samuel Colvin2025/04/02

/ReleasePydantic v2.11