Contribute Media
A thank you to everyone who makes this possible: Read More

Intro to Pydantic, Run-Time Type Checking For Your Dataclasses

Translations: en

Description

"Intro to Pydantic, Run-Time Type Checking For Your Dataclasses" by: Alexander Hultnér

Want static type checking in run time? Want to use standard python type annotations? Want compatibility with standard python dataclasses? Then it sounds like pydantic is something for you. Pydantic offers a pythonic way to validate your user data using run-time enforced standard type-annotations.

This talk focuses on how Pydantic can be used with web APIs to simplify many parts regarding user input validation. I’ve previously back in early 2018 built a similar solution to Pydantic based upon standard dataclasses for a large B2B SaaS application built with flask. When I left that project I was briefly considered rebuilding it as open source but while doing my research I discovered Pydantic’s powers which I had put in my keep tabs on list when it was in an much earlier stage, but at this point it had evolved to a really polished library and a perfect companion for JSON-based APIs.

Recorded at the 2021 Python Web Conference (https://2021.pythonwebconf.com)

Details

Improve this page