Skip to content

Learn FastAPI

FastAPI Logo

A better framework than Flask. Get production-ready code and API. With automatic interactive documentation. Based on (and fully compatible with) the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema.

Features

  1. Automatic docs: Generate documentation for your API automatically.
    • Swagger UI: Interactive exploration, call and test your API directly from the browser.
      http://localhost:8000/docs
      
    • Redoc: Read only documentation. You can also download this doc.
      http://localhost:8000/redoc
      
  2. Response Validation: Use pydantic BaseModel as TypeHint in Python which automatically validate your responses.
  3. Starlette Features: FastAPI is actually a sub-class of Starlette.With FastAPI you get all of Starlette's features (as FastAPI is just Starlette on steroids):
  4. Supports Asynchronous programming.
Important Links To Learn FastAPI

FastAPI Tutorials

Asynchronous Programming Tutorials

Some Advice On FastAPI

Extra Links around FastAPI