From Pydantic V1 to Pydantic V2

hemi s.k (~hemi)


1

Vote

Description:

A crucial component of many Python applications is now Pydantic. With version 2, rebuilding the internals (with benchmarks already showing a 17x performance improvement)! Wow! Pydantic 2.0's release, partial rewriting in Rust, and refactoring into Pydantic core and top-level Pydantic in Python are all significant developments. In actuality, Pydantic 2's alpha has just been made available. Naturally, these modifications could have significant (and advantageous!) effects on libraries based on Pydantic, like FastAPI, Beanie, and others. Sounds great, but what does that mean for us? Because of this, I seized the opportunity to speak on the Pydantic library, and the changes from V1 to V2.
Before discussing how the adoption of Rust has allowed total alteration to the Pydantic's architecture to make it easier to extend and maintain while also greatly boosting performance, I will first offer a brief introduction to Pydantic and the new features in Pydantic V2. The majority of the talk will be devoted to showcasing the benefits (and drawbacks) of creating libraries like Pydantic in Rust using examples from the pydantic V2 code base. I'll discuss the trade-offs and design considerations one could encounter while using Rust to create logic rather than Python. This session should be of interest to any Python developer interested in merging Python and Rust; no prior understanding of Rust or Pydantic is necessary. You'll love the lively and in-depth talk, I'm sure.

Prerequisites:

Python

Content URLs:

Presentation Link

Speaker Info:

I’m Hemangi Karchalkar and I’m a senior software developer working at Epam systems. I’ve been programming as a professional for 5 years and as an amateur for about half my life. In my current role I wear multiple hats. I love teaching and have worked as a mentor in my past organizations and guided people who are new to python.

Section: Web & App development
Type: Talks
Target Audience: Beginner
Last Updated: