Talk Python To Me

#376: Pydantic v2 - The Plan

Aug 4, 2022
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Pydantic's Practical Type Meaning

  • Pydantic became popular by giving practical meaning to Python types and coalescing them into validation and parsing.
  • Its lax coercion, like parsing strings to integers, sets it apart by making it useful for real-world applications.
INSIGHT

Pydantic's Web API Fit

  • Pydantic is particularly suited to web APIs because it validates untrusted data from strings, JSON, and query parameters.
  • It improves developer experience by turning loosely typed input into safely typed Python data.
ANECDOTE

Pydantic Core Rewritten in Rust

  • I experimented by rewriting Pydantic's core in Rust, leading to pydantic-core which is much faster.
  • Rust's features also allow truly recursive validation without a performance penalty.
Get the Snipd Podcast app to discover more snips from this episode
Get the app