How Pydantic V2 leverages Rust's Superpowers
summary
Explains Pydantic V2’s redesign that moves most validation and serialization logic into Rust (via pydantic-core and PyO3) and presents new Pydantic V2 features. Uses examples from the Pydantic V2 codebase to show how Rust changed the library’s architecture, the performance benefits, and the trade-offs and design decisions of implementing library logic in Rust instead of Python.
AI-written summary · about
chapters (11)
- 0:00Start
- 6:07What about Rust?
- 9:38How Rust?
- 11:29Python Interface to Rust
- 13:30Pydantic V2 Architecture pydantic-core
- 18:21Performance
- 20:17Builtin JSON parsing
- 24:01Recursive Models
- 26:22Alias Paths
- 27:50Generics
- 32:21AnalysedType
related talks
27mFrom Pydantic V1 to V2
22mPydantic Power-up: Performance Tips for Lightning-Fast Python Applications
34mRust for the Python dev
22mFrom Pydantic v1 to v2 A Deep Dive Migration for Real Production Systems
44mHow Python Harnesses Rust through PyO3
36mPumping up Python modules using Rust
44mDo Pythons Rust? How we used PyO3 to build a Python Stream Processor w/ a Rust Heart
31mPumping up Python modules using Rust
