~/talk

From Pydantic V1 to V2

Talkat PyCon Italia 2024 · 2024-05-22..05-25· [python, rust]
links:none on file
slides:none on file

Pydantic v2 splits into a pure-Python layer that emits a nested core schema dict and a Rust-backed pydantic-core (Rust) library that compiles that schema into a schema validator object, giving benchmarks up to 17x performance gains; most validation runs in Rust. Trade-offs: faster and more maintainable but cyclic models can cause stack overflows, Rust APIs feel verbose, and migration is eased by vendoring v1 as pydantic.v1 while you progressively update imports.

AI-written summary · about

  1. 0:00Introduction to Pydantic
  2. 3:12Pydantic V1 vs V2 architecture
  3. 6:25Pydantic core and Rust integration
  4. 9:19New features in Pydantic V2
  5. 13:14Pydantic use cases
  6. 18:04Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.