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

Поділитися
Вставка
  • Опубліковано 21 вер 2024

КОМЕНТАРІ • 65

  • @mai6666
    @mai6666 9 місяців тому +8

    Finally there is someone who introduces pydantic v2

  • @snsa_kscc
    @snsa_kscc 10 місяців тому +8

    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

  • @julienstrebler4175
    @julienstrebler4175 2 місяці тому +1

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

  • @garyr1639
    @garyr1639 16 днів тому

    Well done, this is an excellent demonstration of the uses of Pydantic.

  • @paqstd-yt
    @paqstd-yt 6 місяців тому +1

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

  • @Dima-rj7bv
    @Dima-rj7bv 6 місяців тому +1

    Extra thank-you for pydantic-settings!

  • @saurabhjain507
    @saurabhjain507 10 місяців тому +2

    Nice! Much needed walk through

  • @mohammedhasibulhasan4668
    @mohammedhasibulhasan4668 2 місяці тому +1

    Very helpful. Thanks!

  • @sunbath1024
    @sunbath1024 9 місяців тому

    Very nice video on Pydantic. Thanks you so much.

  • @NimaqAlizadeh
    @NimaqAlizadeh 20 днів тому

    Nice🎉

  • @dylanlittle40
    @dylanlittle40 3 дні тому

    106 Alaina Fall

  • @Алхимия-в9л
    @Алхимия-в9л 7 днів тому

    Hello. Thanks for video. Last operation with use env_file, env variables loads not from firle), from enviroment?

  • @ForsterTheobald
    @ForsterTheobald День тому

    3041 Boyer Fields

  • @thelethalmoo
    @thelethalmoo 10 місяців тому

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

  • @EstherNina-r6e
    @EstherNina-r6e 12 днів тому

    093 Runolfsson Creek

  • @DinaDurbin-e2v
    @DinaDurbin-e2v 8 днів тому

    Thompson David Hernandez Jose Rodriguez Linda

  • @fljia8355
    @fljia8355 Місяць тому

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

  • @andreww2528
    @andreww2528 18 днів тому

    Is there anything specific that makes this the best library versus standard librarys dataclasses or the attrs library?

  • @matheussa8293
    @matheussa8293 10 місяців тому +1

    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  10 місяців тому +2

      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?

  • @ClassicFloats-f3q
    @ClassicFloats-f3q День тому

    Martinez Cynthia Johnson Carol Perez Kimberly

  • @BealleMoriniE
    @BealleMoriniE 9 днів тому

    Garcia Daniel Thomas Gary Martin Anthony

  • @CroftsLes-w9r
    @CroftsLes-w9r 2 дні тому

    Thomas Elizabeth Lopez Jessica Hall Frank

  • @riccardomenoli5185
    @riccardomenoli5185 Місяць тому

    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?

    • @codingcrashcourses8533
      @codingcrashcourses8533  Місяць тому +1

      Yes, you are correct to some extent, but let's clarify the details.
      When using Pydantic to define data models in Python, it automatically generates the __init__ method for you, based on the fields you define in the class. This means that you generally don't need to write a custom __init__ method yourself because Pydantic handles the initialization of the attributes, as well as validation and type checking.

    • @riccardomenoli5185
      @riccardomenoli5185 Місяць тому

      @@codingcrashcourses8533 Thank you so much!

  • @NailsLaying
    @NailsLaying 9 днів тому

    Garcia Ruth Harris Deborah Clark Elizabeth

  • @Jonathan-rm6kt
    @Jonathan-rm6kt 9 місяців тому

    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  9 місяців тому

      I would try to have a look if SelfQueryRetrievers, if you use Langchain

  • @victonypauslon-yd9bc
    @victonypauslon-yd9bc 11 днів тому

    Miller Elizabeth Moore Jason Martinez Thomas

  • @KennedyLouise-i5v
    @KennedyLouise-i5v 4 дні тому

    Garcia Steven Wilson Charles Wilson Michael

  • @DeborahDeskins-b2f
    @DeborahDeskins-b2f 16 днів тому

    Miller Daniel Anderson Timothy Smith Larry

  • @MichaelDoty-n2w
    @MichaelDoty-n2w 17 годин тому

    Martin Steven Davis Christopher Thompson Kenneth

  • @ExGuess-w1i
    @ExGuess-w1i 16 днів тому

    Perez Lisa Lewis Mark Rodriguez Donald

  • @МакарНегуторов
    @МакарНегуторов 2 дні тому

    Jones Charles Hernandez John Anderson Jason

  • @StevenSanders-y3q
    @StevenSanders-y3q 8 днів тому

    Moore George Lewis Jason Martinez Charles

  • @HelenLangworthy-j2t
    @HelenLangworthy-j2t 14 днів тому

    Young Gary Hernandez Linda Rodriguez Kenneth

  • @danielneal3952
    @danielneal3952 3 дні тому

    Thomas Angela Johnson Cynthia Williams Helen

  • @DierserMaxwell-e4x
    @DierserMaxwell-e4x 14 днів тому

    Clark Scott Lopez Margaret Wilson Frank

  • @ForsterMiranda
    @ForsterMiranda 2 дні тому

    29408 Norval Street

  • @ClydeHeloise-k4m
    @ClydeHeloise-k4m 3 дні тому

    Lee George Anderson Linda Wilson Dorothy

  • @MichaelDoty-n2w
    @MichaelDoty-n2w 8 днів тому

    Anderson Lisa Young Maria Walker Thomas

  • @ByronGeorgia
    @ByronGeorgia 14 днів тому

    Moore Mary Lopez Ronald Davis Betty

  • @MajinaLaror
    @MajinaLaror 9 днів тому

    Clark Amy Thomas Karen White Larry

  • @DjdyehxXjehrf
    @DjdyehxXjehrf День тому

    Hall John Lewis Melissa Thompson John

  • @ChristineCarter-d5d
    @ChristineCarter-d5d 14 днів тому

    Lewis Karen Wilson Maria Wilson Carol

  • @chris_7711
    @chris_7711 6 місяців тому

    Validierung without Pydantic :D Language validation failed :D

  • @MorganJill-r9b
    @MorganJill-r9b 14 днів тому

    White Amy Hall Ruth Johnson Linda

  • @NoahJoyce-v3l
    @NoahJoyce-v3l День тому

    01540 Gavin Prairie

  • @AckermannPayne
    @AckermannPayne 11 днів тому

    0599 Terrence Spurs

  • @coartneycarroll6666
    @coartneycarroll6666 3 дні тому

    Robinson Thomas Harris Dorothy Clark Dorothy

  • @MoniRina
    @MoniRina 29 днів тому

    Jones Anthony White Joseph Walker David

  • @ElsieMay-z1h
    @ElsieMay-z1h 15 днів тому

    Taylor Donald Robinson Shirley Williams Brian

  • @HoyleNathaniel-j1q
    @HoyleNathaniel-j1q 11 днів тому

    Gonzalez Laura Brown Karen Lee Barbara

  • @ИринейКарандашов
    @ИринейКарандашов 8 днів тому

    Rodriguez Elizabeth Hall Eric Clark Daniel

  • @MstAma-t7g
    @MstAma-t7g День тому

    Moore Eric Williams Frank Johnson Jason

  • @PaulDarcy-h8r
    @PaulDarcy-h8r 10 днів тому

    Jackson Paul Jones Nancy Lewis Thomas

  • @EstimateStudents
    @EstimateStudents 12 днів тому

    Thomas William Walker Nancy Taylor Donna

  • @WatomaSjdob-b6o
    @WatomaSjdob-b6o 10 днів тому

    Brown Brian Johnson Helen Young Jason