Pydantic Introduction - Models, Fields, Constrained Types, Validator Functions and Model Exports
In this video, we dive into the Pydantic library in Python. This is based on the following blog post: https://www.bugbytes.io/posts/introdu... We'll learn a number of things, including: 1. How to define Pydantic model classes and fields with type-annotations. 2. How to define Optional fields and constrained fields 3. How to work with complex Python types such as UUID, Enum and date objects 4. How to define a custom validator function for a field on the model 5. How to export models to JSON and Python dictionaries Github data: https://github.com/bugbytes-io/datasets ๐ ๐๐ต๐ฎ๐ฝ๐๐ฒ๐ฟ๐: 00:00 Intro 01:13 Analysis of the structure of the data to model 02:47 Installing Pydantic and Requests packages 04:02 Defining Pydantic model class 06:22 Creating Optional fields on the Pydantic model 11:09 Constrained fields in Pydantic 15:23 Using custom validator functions in Pydantic 19:54 Using Enums as types in Pydantic models 22:22 Exporting Pydantic models to dictionaries and JSON โ๏ธ ๐๐๐ ๐บ๐ฒ ๐ฎ ๐ฐ๐ผ๐ณ๐ณ๐ฒ๐ฒ: To support the channel and encourage new videos, please consider buying me a coffee here: https://ko-fi.com/bugbytes โถ๏ธ Full Playlist: ย ย ย โขย Pydanticย ย ๐ฆ๐ผ๐ฐ๐ถ๐ฎ๐น ๐ ๐ฒ๐ฑ๐ถ๐ฎ: ๐ Blog: https://www.bugbytes.io/posts/introdu... ๐พ Github: https://github.com/bugbytes-io/datasets ๐ ๐๐๐ฟ๐๐ต๐ฒ๐ฟ ๐ฟ๐ฒ๐ฎ๐ฑ๐ถ๐ป๐ด ๐ฎ๐ป๐ฑ ๐ถ๐ป๐ณ๐ผ๐ฟ๐บ๐ฎ๐๐ถ๐ผ๐ป: Pydantic Blog post: https://www.bugbytes.io/posts/introdu... Github Dataset: https://github.com/bugbytes-io/datasets Pydantic Models: https://docs.pydantic.dev/usage/models/ Pydantic Validators: https://docs.pydantic.dev/usage/valid... #python #pydantic #datascience

Pydantic - Nested Models, JSON Schema and Auto-Generating Models with datamodel-code-generator

Python Pydantic Tutorial: Complete Data Validation Course (Used by FastAPI)

Filling the Test Automation Gaps with AI โ Lessons from the ISTQB Glossary Project

Pydantic Crash Course - Build Reliable Python & AI Applications

Pydantic - Field Customization, Advanced Data Exports and Model Config classes

Why Python Needs Pydantic for Real Applications

Pydantic Tutorial โข Solving Python's Biggest Problem

FastAPI and Pydantic - Model Classes and Nested Models

๐ปPydantic Tutorial for Beginners: Enhance Your Data Validation Skills

Intro to Pydantic V1

Pydantic - Validators (Root Validators, Pre-Item Validators, Each-Item Validators)

Do We Still Need Dataclasses? // PYDANTIC Tutorial

Python Tutorial: Type Hinting vs Type Checking vs Data Validation - Whatโs the Difference?

Pydantic Crash Course

Litestar for Python API Development / Pydantic Model Integration

Please Learn How To Write Tests in Pythonโฆ โข Pytest Tutorial

Polars - An Introduction to Polars v1 for Python Data Analytics!

Building a CLI Tool | Scraping & Processing Data with BeautifulSoup, Requests & Pydantic

1-LangGraph Tutorial-Getting Started With Pydantic-Data Validations

