~/talk

Intro to FastAPI

Talkat Øredev 2022 · 2022-11-08..11-10· [python, web-platform]
slides:none on file

FastAPI uses standard Python type annotations to produce automatic validation and interactive OpenAPI docs with zero boilerplate: path, query and JSON body parameters become typed function args, Pydantic handles parsing/validation and Starlette handles async serving. Complex nested lists and models validate and serialize automatically and errors return exact locations. Example app returns JSON with minimal code, runs on uvicorn and benchmarks around 15k requests per second in third‑party comparisons.

AI-written summary · about

  1. 0:00Intro
  2. 2:15Based on standards-for free
  3. 2:29Based on Python type hints
  4. 2:41Types provide autocompletion
  5. 2:55Easy and short
  6. 3:47Less API code
  7. 8:45Basic FastAPI app with body-docs
  8. 12:22JSON array of objects in body-invalid data
  9. 14:21Data validation
  10. 15:15Type checks
  11. 15:51All based on standard Python types
  12. 17:17FastAPI - Other features
~/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.