meta_pixel
Tapesearch Logo
Log in
Talk Python To Me

#432: Migrating to Pydantic 2.0: Beanie for MongoDB

Talk Python To Me

Michael Kennedy

Technology

4.8635 Ratings

🗓️ 6 October 2023

⏱️ 54 minutes

🧾️ Download transcript

Summary

By now, surely you've heard how awesome Pydantic version 2 is. The team led by Samual Colvin spent almost a year refactoring and reworking the core into a high-performance Rust version while keeping the public API in Python and largely unchanged. The main benefit of this has been massive speed ups for frameworks and devs using Pydantic. But just how much work is it to take a framework deeply built on Pydantic and make that migration? What are some of the pitfalls? On this episode, we welcome back Roman Right to talk about his experience converting Beanie, the popular MongoDB async framework based on Pydantic, from Pydantic v1 to v2. And we'll have some fun talking MongoDB as well while we are at it.

Transcript

Click on a timestamp to play from that location

0:00.0

By now, surely you've heard how awesome Pytantic version 2 is.

0:03.5

The team led by Samuel Colvin spent almost a year refactoring and reworking the core into a high-performance Rust version while keeping the public API in Python and largely unchanged.

0:13.5

The main benefit of this has been massive speedups for the frameworks and devs using Pydantic.

0:19.0

But just how much work is it to take a framework deeply built on Pidantic and make that migration?

0:25.3

And what are some of the pitfalls?

0:26.6

On this episode, we welcome back Roman Wright to talk about his experience converting Beanie,

0:31.3

the popular MongoDB async framework based on Pidantic from Pidantic 1 to 2.

0:36.8

And we'll have some fun talking about MongoDB while we're at it.

0:39.8

This is Talk Pythonomy, episode 432, recorded August 16th, 2023.

1:13.0

Welcome to Talk Python, a weekly podcast on Python. This is your host, Michael Kennedy. Follow me on Massadon, where I'm at M. Kennedy, and follow the podcast using at Talk Python, both on Bostadon.org. Be careful with impersonating accounts on other instances.

1:19.0

There are many. Keep up with the show and listen to over seven years of past episodes at TalkPython.fm.

1:23.0

We've started streaming most of our episodes live on YouTube.

1:30.6

Subscribe to our YouTube channel over at TalkPython.fm slash YouTube to get notified about upcoming shows and be part of that episode.

1:34.5

This episode is brought to you by Studio 3T.

1:39.5

Studio 3T is the IDEe that gives you full visual control of your MongoDB data.

1:45.3

With the drag-and-drop visual query builder and multilanguage query code generator, new users will find they're up to speed in no time.

1:47.6

Try Studio 3T for free at TalkPython.fm slash Studio 2023.

1:53.7

And it's brought to you by us over at Talk Python Training.

1:57.1

Did you know we have over 250 hours of Python courses and we have special offers for teams as well?

2:03.6

Check us out over at talk python.fm slash courses.

2:07.6

Ramon, welcome back to Talk Python.

2:10.6

Hi.

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Michael Kennedy, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Michael Kennedy and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2025.