~/talk

Let JSON Schema and Pydantic write your data models

Talkat PyCon Israel 2024 · on Monday, 2024-09-16· [python, web-platform]
slides:none on file

Uses Pydantic plus JSON Schema to autogenerate client-side models and validation, converting schemas into runtime Pydantic models with a custom generator. Drops ~15% of instance-checking code and scales to 10,000 models in the codebase. Development for a group of models shrinks from hours of manual DTO editing to minutes of generation, moves validation to the client to avoid repeat bad requests, and the generator proves flexible enough for project-specific additions.

AI-written summary · about

  1. 0:00Introduction
  2. 3:04Problems with API clients
  3. 5:56Data models maintenance challenges
  4. 7:40Pydantic for validation
  5. 10:15JSON Schema basics
  6. 13:37JSON Schema advantages
  7. 17:38Pydantic and JSON Schema
  8. 19:30Generating models from schema
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.