2025-09-21 –, Space 3
Get hands-on with Pydantic, the most widely used data validation library for Python.
Learn to write schemas to model data using simple type annotations. Use Pydantic to parse and validate data, consume JSON APIs, manage configuration, design your own APIs and create great command line interfaces with ease.
Bring a laptop - ideally you'll have Python and vscode installed beforehand, but if not I'll help you get started.
Learn to write schemas to model data using simple type annotations. Use Pydantic to parse and validate data, consume JSON APIs, manage configuration, design your own APIs and create great command line interfaces with ease. See how Pydantic can make your code simpler, more readable and make the data you consume a pleasure to work with, and reduce guesswork and type mangling!
I'll be covering:
- What is Pydantic?
- Why use it?
- Setup: virtualenv, installing requirements, setting up vscode
- Data modelling
- Data validation
- Type annotations for simple models
- Custom validators for more advanced parsing and validation
- JSON API schema validation and consuming APIs
- Configuration management with pydantic_settings
- Serving APIs with FastAPI
- Creating CLIs with typer
Basic