Course Information
Course Overview
An in-depth guide to mastering Pydantic V2 for data modeling, parsing and validation
This is an advanced level course on using the Pydantic V2 library. This course is not for beginners!
I have worked with Pydantic (starting with v1) for many years, and use that experience to bring you a course that focuses on the essential parts of Pydantic you will need to know to use it professionally, effectively and to leverage it's full potential.
Pydantic provides a very flexible framework for modeling, validating and parsing data in Python.
Although Pydantic is often associated with frameworks such FastAPI, it has far broader applications well beyond just REST API development. From modeling and validating data in databases (like Redis, DynamoDB, Clickhouse), queues (like SQS, ElasticMQ, RabbitMQ), and even CSV files, to even providing argument validation for your custom Python functions!
Pydantic is a very flexible, fast-to-develop, and easy-to-understand data modeling framework that belongs in every serious Python developer's toolkit.
Anytime you have a Python project that contains a fair amount of data validation and modeling into Python classes, Pydantic can be leveraged very effectively.
You can think of Pydantic as somewhat similar to Python's dataclasses, but with an advanced and flexible data validation layer, as well as the easy ability to deserialize (load) and serialize (output) these Python/Pydantic classes into plain dictionaries and JSON. Just like dataclasses, Pydantic uses Python's type hinting capabilities to define data models, but then adds in validation and serialization/deserialization capabilities, which are all fully customizable.
Course Content
- 10 section(s)
- 85 lecture(s)
- Section 1 Introduction
- Section 2 Basics
- Section 3 Model Configuration
- Section 4 Field Aliasing, Serialization and Deserialization
- Section 5 Specialized Pydantic Types
- Section 6 Additional Field Features
- Section 7 Annotated Types
- Section 8 Custom Validators
- Section 9 Properties and Computed Fields
- Section 10 Custom Serializers using Annotated Types
What You’ll Learn
- Create Advanced Pydantic V2 Models
- Custom Validators and Serializers
- Leverage Annotated Types with Pydantic
- Aliases, Properties and Computed Fields
- Pydantic applications, including validating Python function arguments
Skills covered in this course
Reviews
-
JJUNECHOL AHN
this course let me check my understanding and fluency in python. gives a fresh good motivation to learn python thoroughly
-
MMaciej Orsłowski
very thorough course with many examples and tips.
-
BBayashat Tokmukamet
Awesome course! I'm using Pydantic but never really understood it. This course helped me, answered all my questions, and even surprised me. I highly recommend it to anyone who hasn't joined yet.
-
JJeff Kolbash
I love Dr. Baptiste's courses. I completed all of the python 1-4 series and will do them again one day This is a very intuitive course, and I have already used these concepts multiple times in my own workplace.