Pydantic V2 - Full Course - Learn the BEST Library for Data Validation and Parsing

preview_player
Показать описание
Unlock the power of Pydantic V2 with this comprehensive course tailored for both beginners and seasoned developers. Dive deep into the world of data validation and parsing, and discover why Pydantic is one of the most influational Libraries in the Python Economy.

Timestamps
Introduction: 0:00
Basics: 0:34
Nested models: 4:52
Additional Parsers: 6:43
Field Validators: 9:47
Model Validators: 12:00
The Field class: 15:30
Computed Fields: 19:15
Dataclasses with Pydantic: 20:57
Strict Mode: 22:42
Pydantic Settings: 24:09
Рекомендации по теме
Комментарии
Автор

Finally there is someone who introduces pydantic v2

mai
Автор

Coming from typescript ecosystem where I'm using packages like Zod to do basically the same things, it is nice to see python has this gem, too

snsa_kscc
Автор

Great video! Nothing superfluous, everything is clear. Good examples

paqstd-yt
Автор

Extra thank-you for pydantic-settings!

Dima-rjbv
Автор

Hands down the best 30 minutes invested on Learning Python : Huge fan of your teaching method!

julienstrebler
Автор

Very nice video on Pydantic. Thanks you so much.

sunbath
Автор

Thank you, it came at a great hour! I'm having problems, I'm creating an application that receives a dictionary from a request and then trying to convert it to a structure that the method accepts, but it's difficult! Doing it statically by declaring it like: """class Tagging(BaseModel):
title: str = Field(description="Write a title")
...""" and than using
Everything goes well, but when I try to convert the dictionary dynamically to fields such as 'title' mentioned, the problem arises, would you know how to do this conversion properly? So I could pass it on to AI dynamically to process the fields that the user provided in the request!

matheussa
Автор

at 20:39, the @computed_field has been removed above "def age()" function?

fljia
Автор

Ohh man i wish i knew about computed value already! Thats a life safer

thelethalmoo
Автор

As far as I see pydantic kind of kills the __init__ method. When I define classes I do not need to use anymore the __init__ method but the pytdantic attributes. Is it correct?

riccardomenoli
Автор

Thanks for the video. I’m currently very stuck on the concept of using multiple embeddings or vector indexes vs metadata / knowledge graph. My use case is simple: I have a text of a journal written roughly in chronological sequence. Embedding functions take into account the lexical meaning of words and their approx distance to each other, but not smart enough to allow something like “chapter 3 starts in 1872, so following day/month references like March 4, should have a closer cosine distance to 1827 than “March 4, 1824”.

Is it possible to create a low dimensional embedding vector that represents sequence in the document or rough chronological distance to each other?

I will pay $10 to anyone who is able to give me insight on this!

Jonathan-rmkt
Автор

Validierung without Pydantic :D Language validation failed :D

chris_