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

  Рет қаралды 30,055

Coding Crash Courses

Coding Crash Courses

Күн бұрын

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.
Code: github.com/Coding-Crashkurse/...
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

Пікірлер: 19
@mai6666
@mai6666 7 ай бұрын
Finally there is someone who introduces pydantic v2
@snsa_kscc
@snsa_kscc 9 ай бұрын
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
@paqstd-yt
@paqstd-yt 4 ай бұрын
Great video! Nothing superfluous, everything is clear. Good examples
@Dima-rj7bv
@Dima-rj7bv 5 ай бұрын
Extra thank-you for pydantic-settings!
@mohammedhasibulhasan4668
@mohammedhasibulhasan4668 20 күн бұрын
Very helpful. Thanks!
@julienstrebler4175
@julienstrebler4175 20 күн бұрын
Hands down the best 30 minutes invested on Learning Python : Huge fan of your teaching method!
@codingcrashcourses8533
@codingcrashcourses8533 20 күн бұрын
Thank you very much :)
@saurabhjain507
@saurabhjain507 9 ай бұрын
Nice! Much needed walk through
@codingcrashcourses8533
@codingcrashcourses8533 9 ай бұрын
great it´s useful for you :-)
@sunbath1024
@sunbath1024 8 ай бұрын
Very nice video on Pydantic. Thanks you so much.
@codingcrashcourses8533
@codingcrashcourses8533 8 ай бұрын
Thank you for your nice comment:)
@matheussa8293
@matheussa8293 9 ай бұрын
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 'convert_pydantic_to_openai_function' 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 "convert_pydantic_to_openai_function(Tagging) 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!
@codingcrashcourses8533
@codingcrashcourses8533 9 ай бұрын
Ok that is an interested idea. I would probably try to create a class with no attributes attached. Allow extra_attributes and set these attributes AFTEr instantiation. May that be a solution?
@thelethalmoo
@thelethalmoo 8 ай бұрын
Ohh man i wish i knew about computed value already! Thats a life safer
@codingcrashcourses8533
@codingcrashcourses8533 8 ай бұрын
Yep, one of my favorite features too :)
@Jonathan-rm6kt
@Jonathan-rm6kt 7 ай бұрын
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!
@codingcrashcourses8533
@codingcrashcourses8533 7 ай бұрын
I would try to have a look if SelfQueryRetrievers, if you use Langchain
@chris_7711
@chris_7711 4 ай бұрын
Validierung without Pydantic :D Language validation failed :D
@codingcrashcourses8533
@codingcrashcourses8533 4 ай бұрын
:p
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 254 М.
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 10 МЛН
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 6 МЛН
5 Good Python Habits
17:35
Indently
Рет қаралды 459 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 344 М.
Pydantic (V2) - In-depth Starter Guide
1:13:20
MathByte Academy
Рет қаралды 11 М.
Python Typing | Type Hints & Annotation
19:57
Ridwanray
Рет қаралды 254
Pydantic Has Saved Me Countless Hours Of Debugging
14:52
Eric Roby
Рет қаралды 6 М.
Do We Still Need Dataclasses? // PYDANTIC Tutorial
16:33
ArjanCodes
Рет қаралды 198 М.
Rust Data Modelling Without Classes
11:25
No Boilerplate
Рет қаралды 167 М.
Just Use Pydantic
8:11
John Watson Rooney
Рет қаралды 22 М.