- Interesting suggestion to use json schema to define types shared by multiple servers/languages and then use libraries to automatically generate Pydantic models (for example)
- Alternative to protobuf?
- Useful for most web app cases so backend and frontend can share type definitions, regardless of language?
- Any gotchas?
Original video by EuroPython Conference:
EuroPython 2022 - Simple data validation and setting management with Pydantic - presented by Teddy Crepineau
[Liffey Hall 1 on 2022-07-14]
When processing data, validating its structure and its type is critical. Bad record types or changes in structure can often result in processing errors or worst in wrong data output. Yet, solving this problem cleanly and efficiently can be challenging. It often results in complicated code logic and increases complexity; consequently decreasing code readability. Pydantic is an efficient and elegant answer to these challenges
We expect you’ll leave this talk with a good understanding of:
- Existing challenges in data validation
- What Pydantic Models, Validators, and Convertors are
- How to leverage Pydantic in your day to day (using real-life examples)
- [Bonnus] How to use Code Generation to create Pydantic Models from any data sources
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License http://creativecommons.org/licenses/by-nc-sa/4.0/