Learn Pydantic with free notebooks
8 free video lessons that use Pydantic, each with a downloadable Jupyter notebook and, where needed, the dataset. Learn Pydantic by working through real examples.
About these Pydantic lessons
These 8 lessons come from 2 different courses, so you see Pydantic used in several settings. The course with the most Pydantic lessons is FastAPI deep dive (7 lessons).
Pydantic is most often used here together with FastAPI, SQLAlchemy, pytest and datetime.
Watch the video, then run the notebook yourself: changing the code and re-running it is the fastest way to learn.
Courses that use Pydantic
- FastAPI deep dive – 7 lessons
- Python library centre – 1 lesson
15 minFastAPI Tutorial #3: Request Bodies & Pydantic Models
16 minFastAPI Tutorial #4: Response Models & HTTP Status Codes
17 minFastAPI Tutorial #5: Data Validation with Pydantic
18 minFastAPI Tutorial #11: Error Handling & Custom Exceptions

FastAPI Tutorial #14: Databases with SQLAlchemy

FastAPI Tutorial #17: Testing FastAPI Apps with pytest

FastAPI Tutorial #18: Capstone — Production-Ready API
16 minUnderstanding Pydantic: Efficient Data Validation and Management in Python
Frequently asked questions
Where should I start learning Pydantic?
Start with “FastAPI Tutorial #3: Request Bodies & Pydantic Models”, then work through the FastAPI deep dive course.
Are these Pydantic lessons free?
Yes. Every video, notebook and dataset on this site is free to use for learning.
Can I run the Pydantic notebooks without installing Python?
Yes. Open them in Google Colab, or use the Run in browser button where a lesson has one.