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.

PydanticAI is an agent framework to make it less painful to build production grade applications with generative AI.
> 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.
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
PydanticAI
Agent Framework / shim to use Pydantic with LLMs
jiter
The fast, iterable JSON parser
arq
Fast job queuing and RPC in Python
speedate
Date, time and duration parsing for Rust
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.