Python Pydantic Tutorial - Learn how to write advanced Classes in Python

preview_player
Показать описание
#Python #Pydantic #OOP

Welcome to a unique tutorial, this library is the most popular way of creating classes in Python and we're going to learn how to use it.
I might have not mentioned this in the video, but please use Python3.11 or above in your computer to ensure everything will work

Timeline:
00:00 - 01:30 - Why learn Pydantic ?
01:31 - 03:11 - Basic Pydantic Syntax
03:12 - 07:45 - Field Validating
07:46 - 11:05 - Annotations with Pydantic
11:06 - 14:24 - Default values in fields
14:25 - 16:11 - Additional fields for the Project
16:12 - 19:22 - Useful object methods in Pydantic

Related tutorials:

🟤 Decorators:

🟤 Class vs Instance vs Static methods:

Important Links:
🔴 Take the code from:

🔴 Pydantic documentation

🔴 How to install choco on Windows ?
Рекомендации по теме
Комментарии
Автор

I planned to do more episodes on this topic, let me know by 👍 this comment if you'd like to see more on Pydantic.

jimshapedcoding
Автор

Thanks for the video, mate😊
Also pydantic has the Field method used when you provide attributes, and there are plenty of adjustments there as well, including base checkers eg max\min length etc - It would be great if you cover this part in future videos :)

elmtoix
Автор

Hi Jim,
Can you explain for example how to download a project from github and run it locally? What exactly has to be done in terms of creating relevant environment and how, how and where the installations have to be done and the usage of the requirements file. some technical stuff that I find necessary to know.

eitancohen