Udemy

Learning Pydantic: Advanced Data Validation In Python

立即報名
  • 1,606 名學生
  • 更新於 11/2025
4.4
(121 個評分)
  • 提示:
  • 透過本站連結購買Udemy課程,本站將獲得推廣佣金,有助未來提供更多實用進修課程資訊給讀者。

課程資料

報名日期*
全年招生
課程級別
學習模式
修業期
11 小時 17 分鐘
教學語言
英語
授課導師
Andy Bek
評分
4.4
(121 個評分)
*提示: 以上時間表僅供參考,以機構網站為準。

課程簡介

Learning Pydantic: Advanced Data Validation In Python

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!

課程章節

  • 7 個章節
  • 102 堂課
  • 第 1 章 Pydantic In A Nutshell
  • 第 2 章 Type Hinting Foundations
  • 第 3 章 Factories, Enums, And Other Props
  • 第 4 章 Custom Validators
  • 第 5 章 Model Serialization And Deserialization
  • 第 6 章 Capstone Project: Building A Modern Python API With Pydantic, FastAPI And Redis
  • 第 7 章 Appendix A - Python Programming Crash Course

課程內容

  • 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


評價

  • M
    Muhammad Hassan
    3.0

    this is best course for pydantic but its overlloaded with the fastapi and python course. Instructor explain very well but overloaded the course .

  • E
    Evgeni Nikolaev
    5.0

    This is an outstanding course! Thank you!

  • F
    Fernando Hernández
    5.0

    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.

  • Y
    Yaron Klein
    5.0

    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.

立即關注瀏覽更多

本網站使用Cookies來改善您的瀏覽體驗,請確定您同意及接受我們的私隱政策與使用條款才繼續瀏覽。

我已閱讀及同意