~/talk

5 Things about fastAPI I wish we had known beforehand

Talkat PyCon Italia 2023 · 2023-05-25..05-28· [api-design, web-platform]
slides:none on file

FastAPI runs on Pydantic, Starlette and Uvicorn, so Pydantic does parsing not strict enforcement: validators must return value and the default behavior lets unknown fields through unless you set extra=forbid, which caught a frontend/backend bug. Documentation is sparse (only ~11 docstrings in a large codebase), so debugging deep behavior is hard. Built an automatic domain client by using FastAPI introspection+Jinja2 code generation (works well), but middleware that mutates requests becomes complex and organization-wide model standardization requires heavy coordination.

AI-written summary · about

  1. 0:00Introduction to FastAPI
  2. 2:53Why choose FastAPI
  3. 5:42Pydantic's role in FastAPI
  4. 10:00Pydantic models and defaults
  5. 15:22Starlette's importance
  6. 16:04Domain-driven data clients
  7. 18:33Automating data client generation
  8. 20:41Lack of docstrings in FastAPI
  9. 22:06DRY with Pydantic models
  10. 24:35Standardizing models organization-wide
  11. 25:18Five things I love about FastAPI
  12. 26:19Q&A session
~/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.