Learn FastAPI
Fast, type-hint driven Python framework for building HTTP APIs
FastAPI is a modern Python web framework for building APIs, built on Starlette for the web layer and Pydantic for data validation. You declare endpoints as typed functions and get request parsing, validation, JSON serialization and interactive OpenAPI docs from the same code. It is one of the most popular choices for Python back ends, microservices and ML model serving.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know