Rock Solid Python with Python Typing Transcripts
Chapter: Frameworks Built on Typing
Lecture: Pydantic Foundations

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Call me a sucker for awesome lists, but I think they're pretty awesome. There's an awesome Python typing awesome list that you can check out.
0:09 You can see the URL in the address bar here. And this one is a collection of Python types, stubs, plugins, tools, and frameworks that work with types.
0:20 So much like the point of this chapter, here's an awesome list designed to aggregate all these frameworks and these tools.
0:27 Now, one thing you will see making a wide appearance, or a frequent appearance in these lists and these frameworks is Pydantic.
0:36 So Pydantic came along three or four years ago, and it really took the world by storm. It's kind of like data classes if you've seen those,
0:44 but it's all about using, deeply using Python type information to pull in unstructured data. Usually, I think the genesis was around APIs, right?
0:56 right? Like somebody submits a JSON document to your API, and you say it has to match all
1:02 of these aspects, Pydantic will look at that, parse it, validate it and even do some automatic
1:09 conversions when possible for you. So Pydantic is an awesome, awesome framework, we're going
1:14 to see a lot of things in this chapter are built upon it. It's kind of used a lot, actually,
1:21 Check this out. Back in August, the Pydantic team announced that they just surpassed 1 billion downloads of Pydantic.
1:30 So congrats to the team. And sure, it's not a popularity contest for whether or not you should use a framework.
1:38 But the more it's used, the more other things are going to work with it, support it,
1:43 editors are going to have special understanding and tools to work with those frameworks and so on.
1:49 So having Pydantic be such a popular framework in the foundation for many of the other things we're gonna look at is generally a positive.
1:56 Pydantic is the foundation so much so that it has its own awesome list. So awesome Pydantic, again, you can see that in the URL bar here and
2:06 go explore it if you like. So there's a lot of things based on Pydantic itself. So check out this list if you wanna get a more full featured,
2:15 more broad look than what we're gonna cover in this course. but I pulled out what I think are the most important frameworks when we're talking about
2:22 Pydantic that are based on Pydantic.


Talk Python's Mastodon Michael Kennedy's Mastodon