meta_pixel
Tapesearch Logo
Log in
Talk Python To Me

#313: Automate your data exchange with Pydantic

Talk Python To Me

Michael Kennedy

Technology

4.8635 Ratings

🗓️ 22 April 2021

⏱️ 61 minutes

🧾️ Download transcript

Summary

Data validation and conversion is one of the truly tricky part of getting external data into your app. This might come from a REST API, a file on disk, or somewhere else. This includes checking for required fields, correct data types, converting from compatible types (for example, strings to numbers), and much more. Pydantic is one of the best ways to do this in modern Python using dataclass-like constructs and type annotations to make it all seamless and automatic.

Transcript

Click on a timestamp to play from that location

0:00.0

Data validation and conversion is one of the truly tricky parts of getting external data into your app.

0:05.7

This might come from a Rest API or a file on disk or somewhere else.

0:10.2

It includes checking for required fields, the correct data types, converting from potentially compatible types,

0:16.0

for example, from strings to numbers if you have quote seven but not the value seven and much more.

0:21.8

Pidentic is one of the best ways to do this in modern Python using data class like constructs

0:27.1

and type annotations to make it all seamless and automatic. We welcome Samuel Colvin,

0:32.7

creator of Pidantic, to the show. We'll dive into the history of Pidantic and its many uses

0:37.0

and benefits. This is Talk Python to Me.

0:39.6

Episode 331 recorded April 14, 2012. Welcome to Talk Python to me, a weekly podcast on Python, the language, the libraries, the ecosystem, and the personalities.

1:03.1

This is your host, Michael Kennedy. Follow me on Twitter where I'm at M. Kennedy, and keep up with the show and listen to past episodes at Talk Python.fm.

1:13.5

And follow the show on Twitter via at Talk Python.

1:18.7

This episode is brought you by 45 drives and us over at Talk Python training.

1:22.2

Please check out what we're offering during those segments. It really helps support the show.

1:23.3

Hey, Samuel.

1:25.7

Hi, Mike. Great to meet you. Very excited to be here.

1:27.3

Yeah, I'm really excited to have you here.

1:31.8

You've been working on one of my favorite projects these days that is just super, super neat,

1:37.0

solving a lot of problems, Pidentic, and I'm really excited to talk to you about it. Yeah, as I say,

1:46.1

it's great to be here. I've been doing Pidantic on and off now since 2017, but I guess it was when Sebastian Ramirez started using it on Fast API a couple years ago. A couple years ago, I don't know when, that it really like went crazy. And so now

1:50.3

it's a lot of work, but it's exciting to see something this popular. I sure there's a lot of work,

1:54.3

but it really seems to have caught the imagination of people and really excited about it. So

1:59.9

fantastic work. Before we get into the details

...

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.