Pydantic Has Saved Me Countless Hours Of Debugging

Sdílet
Vložit
  • čas přidán 5. 08. 2024
  • Pydantic, an incredibly data validation and settings management library, can be the key to unlocking next-level efficiency in your Python development process. This tool will help you mitigate errors and reduce debugging time substantially.
    🎥 React + FastAPI: • How to build a React +...
    🎥 AWS Lambda + FastAPI: • Deploy FastAPI on AWS ...
    🎥 MongoDB + FastAPI: • Unlocking the Power of...
    🎥 MySQL + FastAPI: • How to build a FastAPI...
    🎥 PostgreSQL + FastAPI: • How to build a FastAPI...
    🎓 Courses can be found:
    FastAPI Beginner & Advanced: www.udemy.com/course/fastapi-...
    Learn Chatbot Development: www.udemy.com/course/the-comp...
    🛒 GEAR & RECOMMENDED BOOKS: kit.co/codingwithroby
    👨‍💻 Hi, I am Eric!👨‍💻
    Hey! I’m a seasoned developer and AI enthusiast. I love sharing my knowledge and helping others to discover the exciting world of programming and cloud technologies. For more tutorials, tips, and tech magic, don’t forget to hit that subscribe button and ring the bell for notifications!
    🙏 Support The Channel 🙏
    If you found this tutorial helpful, please give it a thumbs up 👍, comment, and share it with your network 🌍
    ⌚️Timestamps:
    0:00 Introduction
    0:15 What is Pydantic
    1:00 Python Application that needs Data Validation
    3:35 Field Validation - Pydantic
    5:15 Dynamic UUID - Pydantic
    8:27 JSON to Python Object - Pydantic
    10:06 JSON Schema Extra - Pydantic
    11:15 Custom Validation - Pydantic
    12:45 Email Validation - Pydantic
    PS: The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you.
    #pydantic #python #fastapi

Komentáře • 25

  • @christianpenguin2651
    @christianpenguin2651 Před 3 měsíci +1

    So glad you're covering pydantic! Love to see more (pydantic still evolving quickly)

  • @ByThisShallAllMenKnow
    @ByThisShallAllMenKnow Před 10 měsíci +2

    I love how direct your videos are. Thank you very much for these!

    • @codingwithroby
      @codingwithroby  Před 10 měsíci

      This means a lot, thank you so much 🙂 Being a small creator is a bunch of work, so these messages are really nice to get!

  • @mdnaseif7599
    @mdnaseif7599 Před rokem +2

    Keep going!

    • @codingwithroby
      @codingwithroby  Před rokem +1

      Thank you! That’s the plan 🙂 Any video topics you are hoping to see in the future?

    • @bx_h23
      @bx_h23 Před rokem

      @@codingwithroby Redis or Databricks perhaps?

    • @mdnaseif7599
      @mdnaseif7599 Před rokem

      @@codingwithroby what brings me to your channel couple of days ago, I am planning to do Ai startup so I need to learn web development so I can publish my idea (ML model), So it will be great if make something like that (tech stack for Ai projects) like fastapi and mongodb for backend and maybe react in front-end. I know you did something like that but it will great if it was Ai narrow. Thanks 🙏🏻

    • @mdnaseif7599
      @mdnaseif7599 Před rokem

      @@codingwithrobylike how to store models in the mongodb, How to do charts for the data in react, I know it’s a lot to ask 😂 but really there is a lack in the content in this field

  • @metinEsturb
    @metinEsturb Před rokem +2

    Dear Eric, your channel shows me that the YT Algorithm is completely broken! Your channel is the most underrated channel on whole YT! Your content is amazing! I have no clue why your channel does not have at least 100k subs. Your videos, Thumbnails, Titles and content are really great. I am sure the algorithm will pick you up soon! Please just continue your awesome work :) Cheers from Switzerland

    • @codingwithroby
      @codingwithroby  Před rokem +1

      Wow! This comment means so much to me for a couple of reasons. 1) I really really appreciate the kind words and that you are finding value from the videos. 2) I love Switzerland. I spent a few weeks over at Interlaken and it was simply amazing.

  • @alexandrodisla6285
    @alexandrodisla6285 Před 11 měsíci +2

    Hi Eric. Project idea: How do you implement caching with fastapi? Caching in the browser

    • @codingwithroby
      @codingwithroby  Před 11 měsíci +2

      Well on the browser you would use the FE library so either Jinja or React to save in sessions. For FastAPI we would use Redis.... which may have a video coming soon :)

  • @user-ij2ni3fz5q
    @user-ij2ni3fz5q Před 10 měsíci +1

    Lovely explanation

  • @OpenDeepLearning
    @OpenDeepLearning Před rokem +2

    The bg music is too loud my friend

  • @timbrap4693
    @timbrap4693 Před 11 měsíci +1

    Isn't the Config class outdated since pydantic V2?

    • @codingwithroby
      @codingwithroby  Před 11 měsíci +2

      Config is becoming deprecated, however "as of right now" it is very common to create the Swagger model from the Config still. This is why the Config class is only used for changing the Swagger documents, not for anything else for Pydantic

  • @szabolcsjobbagy30
    @szabolcsjobbagy30 Před 8 měsíci

    The video is very informative,
    but if you make a mistake,
    do not leave it in the video,
    cut it out and record that part again.
    If someone leaves the mistakes in the videos, that can spoil the professional image, the positive perception in the viewers.

    • @codingwithroby
      @codingwithroby  Před 8 měsíci +1

      Hey, I am only human too 🙂

    • @szabolcsjobbagy30
      @szabolcsjobbagy30 Před 8 měsíci

      @@codingwithroby Yes, that's why you should cut it out and record that part again,
      only a few minutes lost,
      but lots of credibility gained.

    • @ivanabregu1
      @ivanabregu1 Před 3 měsíci

      @szabolcsjobbagy30 you make the worst mistake ever, you must start with a big THANKS, then u could suggest an improvement and finish with another THANKS to Eric for the amazing work.