~/talk

Serving ML Easily With FastAPI

Talkat PyData Fest Amsterdam 2020 · 2020-06-15..06-20· [ai-assisted-development]
slides:none on file

FastAPI shows how to turn a working ML model (spaCy entity extractor in examples) into a production JSON API with minimal code, delivering automatic OpenAPI interactive docs, Pydantic data validation and editor autocompletion, OAuth2 hooks, and dependency injection wired into docs. It relies on Starlette + Uvicorn, uses standard Python type hints, and demonstrates >15,000 GitHub stars growth plus benchmarks around 15k requests/sec, proving the served endpoints validate inputs, document themselves, and perform.

AI-written summary · about

  1. 0:00Introduction
  2. 1:45About FastAPI
  3. 2:24FastAPI Basics
  4. 3:22Support for type annotations
  5. 4:17Concise backend code
  6. 6:00Challenge: serving a machine learning model
  7. 7:33How API routes and documentation work
  8. 11:30Parsing HTTP body and query
  9. 18:05Making ML calls from the API app
  10. 23:20Data validation of the HTTP body
  11. 28:52IDE auto-completion and type checks
  12. 30:49Documenting fields with metadata
  13. 32:57Declaring mandatory fields and validating requests
  14. 36:56Performance
  15. 38:27Additional features
  16. 39:50About typer and thing libraries
  17. 41:30Q&A
~/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.