Type to search…

↑↓ navigate open Esc close
Learn FastAPI

17 Mar 2024 Anshul Raj Verma

Blog Icon: simple-icons:fastapi

Learn FastAPI framework from basic to advance with free tutorials and official docs.

Back

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.

FastAPI Tutorials

Asynchronous Programming Tutorials

Some Advice On FastAPI