~/talk

An Introduction to FastAPI

Talkat PyCon US 2021 · 2021-05-14..05-15· [python, web-platform]
links:none on file
slides:none on file

FastAPI claims to let you build REST APIs with minimal code while actually generating interactive docs and validation. It uses Starlette for async serving, builds an OpenAPI schema from Python type hints, and validates bodies with Pydantic models. The demo writes a recipe API endpoint by endpoint, shows Swagger UI running, returns JSON and HTML, supports websockets, and wires third‑party pieces like fastapi‑code‑generator and pagination. Examples compile and the generated docs and validation behave as described.

AI-written summary · about

  1. 0:00Intro
  2. 0:24Outline
  3. 1:32What is FastAPI?
  4. 2:22Batteries Included
  5. 2:58It's Pythonic!
  6. 4:09How Does it Work?
  7. 4:45And of course.
  8. 5:18Getting Started
  9. 5:54Anatomy of a FastAPI Function
  10. 8:37Query Parameters
  11. 9:38Creating Schemas
  12. 11:01Using Schemas
  13. 11:31Mixing Parameters
  14. 13:04Building out Documentation
  15. 13:50Documenting Endpoints
  16. 14:57Different Response Types
  17. 16:34Websocket Support
  18. 17:09Third Party Tools
  19. 19:01FastAPI Wrap-up
  20. 22:00To Conclude...
~/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.