~/talk

What does Starlette really do for FastAPI?

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

Starlette supplies most runtime plumbing behind FastAPI: background tasks (Starlette implements the task runner; FastAPI only injects the BackgroundTasks parameter), the TestClient used in examples and tests, WebSocket handling, routing/path converters and base HTTP middleware. FastAPI adds type-hint introspection and automatic OpenAPI docs from Python types, while Starlette includes a simpler schema generator (incomplete and seldom used). Examples and code snippets in the talk show identical Starlette implementations that FastAPI merely re-exports or wraps.

AI-written summary · about

  1. 0:00Introduction to FastAPI
  2. 2:20Background tasks in FastAPI
  3. 6:52Testing with TestClient
  4. 10:36Websockets and Async API
  5. 13:57OpenAPI schema generation
  6. 16:59Middleware and path handling
  7. 22:18Why use FastAPI?
  8. 24:05Pydantic V2 update
  9. 25:47Q&A and conclusion
~/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.