Pydantic Introduction - Models, Fields, Constrained Types, Validator Functions and Model Exports

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 47

  • @RedShipsofSpainAgain
    @RedShipsofSpainAgain Год назад +4

    Btw, a way to display the JSON response in a much more readable way is to use the 'pprint()' function from the pprint module. Simply using pprint(response.json()) rather than print(response.json()) will give you a more legible rendering of your json response.
    I find it super helpful when parsing through deeply nested JSON.

  • @chitreddysairam
    @chitreddysairam 5 месяцев назад +4

    Awesome introduction to Pydantic. Will be grateful if you plan a video for Pydantic V2

  • @robhafemeister3100
    @robhafemeister3100 Год назад +5

    Great video, perfect timing, working on a Django-Ninja project. Really look forward to your content.

    • @bugbytes3923
      @bugbytes3923  Год назад

      Thanks a lot Rob, and thanks for your support.
      Pydantic underpins a lot of good up-and-coming Python stuff - good to get to grips with the fundamentals! Thanks again

  • @diegosantosmoto
    @diegosantosmoto 9 месяцев назад +2

    That's a great video. I code with javascript and I wanna learn python for web. 👍

  • @i-see-right-through-you
    @i-see-right-through-you 9 месяцев назад +2

    great pacing and completeness - thx!

  • @je9625
    @je9625 11 месяцев назад +1

    My new favorite Python channel. Job well done !

  • @Profutbol576
    @Profutbol576 Год назад +2

    You are an absolute legend. Truly, between this and your playlists on Django/HTMX, you have saved me from many a headache. Cheers, man.

    • @bugbytes3923
      @bugbytes3923  Год назад +2

      Thanks very much! Greatly appreciated - cheers :)

    • @AliHassan-wc6nb
      @AliHassan-wc6nb Год назад

      ​@@bugbytes3923can we use pydanric with django?

  • @TomislavMiletic
    @TomislavMiletic 29 дней назад +1

    You are the best, thank you for all videos :) Is this playlist using v1 or v2?

    • @bugbytes3923
      @bugbytes3923  29 дней назад +1

      Thanks Tomislav! This was released about 4 months before v2 arrived - hoping to create a new v2 series at some point, though!

    • @TomislavMiletic
      @TomislavMiletic 29 дней назад

      @@bugbytes3923 thank you 🕺

  • @davidsulaberidze5978
    @davidsulaberidze5978 Год назад +3

    Great tutorial. Thank you very much

  • @ekkalukeksook6477
    @ekkalukeksook6477 6 месяцев назад

    This is awesome. You make me love Python more than usual. Much obliged.

  • @joaquingonzalez2297
    @joaquingonzalez2297 Год назад

    Your tutorial save me from several headaches. Thanks for this I appreciate it 😎

  • @swelanauguste6176
    @swelanauguste6176 Год назад +2

    I really look forward to your videos. Thanks a lot

  • @mercy.yerram5671
    @mercy.yerram5671 6 месяцев назад

    This is a great video. Thank you very much. Im working on a project using pydantic library.

    • @bugbytes3923
      @bugbytes3923  6 месяцев назад

      Thank you! All the best with your project, hope this helped.

  • @luisantonio7191
    @luisantonio7191 2 дня назад +1

    Great content

  • @arunima2916
    @arunima2916 Год назад +2

    Great content!! Thank you!!

    • @bugbytes3923
      @bugbytes3923  Год назад

      Thank you very much! Much appreciated.

  • @python360
    @python360 Год назад +2

    Thank you. Subscribed!

  • @ProfeDuilio
    @ProfeDuilio Год назад +3

    Excellent, thanks !
    Please, could you show how use websockets with HTMX and FastAPI ???

    • @bugbytes3923
      @bugbytes3923  Год назад +3

      Thanks for watching! WebSockets and FastAPI would be an interesting one (with some HTMX too). Will definitely add to the list.

    • @kavustock
      @kavustock Год назад

      @@bugbytes3923 One basic video on using it in isolation, then a second layering it into Django.

  • @ProfeDuilio
    @ProfeDuilio Год назад +1

    Do you think it's a good idea to use Models, Fields and Constrained Types for an ETL (extract, transform and load) process in Data Engineering?

    • @bugbytes3923
      @bugbytes3923  Год назад

      Interesting question. I can definitely imagine Pydantic helping with the transform part of the ETL process. After extracting your data from various sources, you could define validation and transformations with Pydantic - that would be a cool example. That could even be hooked up with something like Apache Airflow.

    • @AliHassan-wc6nb
      @AliHassan-wc6nb Год назад

      ​@@bugbytes3923what is apache airflow 😂

  • @rolandovillcaarias5112
    @rolandovillcaarias5112 3 месяца назад

    When BaseModel is implemented in the same file, it works. But, if you define BaseModel in different file and import it, it raises Redundant Cyclic UHE

  • @kushalpy
    @kushalpy 5 месяцев назад +1

    Big bro we need on Pydantic V2

  • @skyhappy
    @skyhappy Год назад

    A lot of this functionality is already in Django, which you have videos on. Why use Pydantic when Django has this built in?

    • @bugbytes3923
      @bugbytes3923  Год назад

      Pydantic is used with other frameworks such as FastAPI. It can be used in any Python context where you are validating data from an external source, which is very useful.
      You would not, for example, create a Django app just to validate data. There are different tools that are good for different contexts!
      The channel has a focus on Django at the moment, and that will be the main thing, but there are other tools that I'd like to explore on here, too.

  • @SOHAILKHAN-iu8fu
    @SOHAILKHAN-iu8fu Год назад +1

    Sir make a video on django sub query please

    • @bugbytes3923
      @bugbytes3923  Год назад +1

      I have an ORM series I'm working on now, hoping to start releasing videos soon. Subqueries will be part of this series.

    • @SOHAILKHAN-iu8fu
      @SOHAILKHAN-iu8fu Год назад

      @@bugbytes3923 thnx Sir i am waiting

  • @caiyu538
    @caiyu538 11 месяцев назад

    👍