Course Information
Course Overview
The Complete Guide To Pydantic Including A Full Capstone Project with FastAPI And Redis
Welcome to the best resource online for learning modern Pydantic, a data validation library that has taken the python community by storm.
Pydantic is was first released in 2018 and has since become one of the most popular python libraries. It is nowadays downloaded more than 130 million times a month, and is used by some of the largest organizations out there, from the tech giants like Google, Amazon, Apple, Meta, and Netflix, to large conglomerates in various other industries, such as Starbucks, JPMorgan Chase. Oh, and yes, even NASA.
There's a good reason for this. Pydantic is a powerful library that elegantly solves a very common problem in software development: data validation.
Pydantic's speed, simple declarative syntax, and extensibility make it an indispensable utility in modern python development.
And in this course, you will learn everything you need to know to get started with Pydantic, from the very basics of defining data models, to more advanced topics such as fields with factory defaults, creating custom model-validators, data serialization, and much more.
The first part of the course will be purely about pydantic, where we explore it in isolation. You will learn:
how to define data models with pydantic
how to compose more complex models from simpler ones via inheritance
the foundations of type hinting in python, including enumerations, literals, and other advanced types-
how to use pydantic's powerful validation system
how to serialize and deserialize data
how to extract models to schemas
how to validate data against pydantic models
Then in the second part of the course we will turn our attention to the Capstone Project, where we will use pydantic to develop and deploy a python web API that allows users to create and vote on polls. This app will use Redis as our durable key-value data store, and will be deployed to production as a serverless function.
The Capstone will be developed step by step, in a series of about 30 skill challenges, where you will be asked to incrementally implement small features. This will give you the opportunity to practice what you've learned in the first part of the course, and to:
get a practical feel for how Pydantic is used in real-world applications
learn about modern API development with python
understand what Redis is and how it can be used as a durable data store
learn about virtual environments and dependency management in python
practice using git and github
learn the basics of serverless computing by deploying the API as a serverless function
The course will use the latest version of Pydantic, which leverages the power of Rust to achieve blazing fast performance.
Also, if you're new to python or haven't used the used the language in a while, there's a full-featured python crash course included as an extra appendix which will get you up to speed in no time.
I'm very excited to share this with you, and I look forward to seeing you in the course!
Course Content
- 7 section(s)
- 102 lecture(s)
- Section 1 Pydantic In A Nutshell
- Section 2 Type Hinting Foundations
- Section 3 Factories, Enums, And Other Props
- Section 4 Custom Validators
- Section 5 Model Serialization And Deserialization
- Section 6 Capstone Project: Building A Modern Python API With Pydantic, FastAPI And Redis
- Section 7 Appendix A - Python Programming Crash Course
What You’ll Learn
- Gain an in-depth understanding of what Pydantic is and how it is used
- Practice defining Pydantic data models using modern type hints, custom validations, and fine-tuned configuration
- Learn how to define complex, interdependent, and nested data models with Pydantic
- Serialize model instances into JSON and deserialize incoming data
- Practice using Pydantic in the context of building and deploying a real-world python web API
- Master relevant concepts in modern python application development, like dependency management and version control
Skills covered in this course
Reviews
-
MMuhammad Hassan
this is best course for pydantic but its overlloaded with the fastapi and python course. Instructor explain very well but overloaded the course .
-
EEvgeni Nikolaev
This is an outstanding course! Thank you!
-
FFernando Hernández
It is the second course I take from Andy, and honestly it is as always one of the best courses related to python, in this specific case to Pydantic, you really learn from the basics to things you didn't know you can do, it is totally worth the course, plus you learn some tips, directly unrelated to Pydantic.
-
YYaron Klein
Covers using Pydantic and FastApi from the initial installs all the way to deployment on the web using Github and Vercel. Now in the age of CoPilots and Vibe coding do we really need to understand what goes on under the hood ? Well - they'll remember the syntax for us - but if you don't tell them what to do they'll choose some default off the web. The first thing every course on the wonderful new world opening to us says is - "be specific". In the end to "be specific' - you need to understand whats going on under the hood.