fastapi
Package — Web FrameworkPython 3.8+Intermediate
Modern async API framework with automatic OpenAPI docs and Pydantic validation
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.8+
- Dependencies
- Starlette, Pydantic, anyio, typing-extensions
- Install
pip install fastapi[standard]
Learn by Difficulty
Quick Example
python
# Install: pip install fastapi[standard] from fastapi import FastAPI app = FastAPI() @app.get("/") async def root(): return {"message": "Hello, World!"} @app.get("/items/{item_id}") async def read_item(item_id: int, q: str = None): return {"item_id": item_id, "q": q}
fastapi is a third-party package. Modern async API framework with automatic OpenAPI docs and Pydantic validation. Install with: pip install fastapi[standard]
Try in PlaygroundTags
packagewebframeworkasyncapiopenapi
Related Items
flask
Package — Web Framework
Lightweight micro-framework for web apps and APIs with Jinja2 templates
django
Package — Web Framework
Full-stack web framework with ORM, admin panel, auth, templates, migrations
starlette
Package — Web Framework
Lightweight ASGI framework; the foundation under FastAPI
pydantic
Package — Validation
Data validation using Python type annotations; settings management
uvicorn
Package — Server
Lightning-fast ASGI server on uvloop and httptools
httpx
Package — HTTP
Modern HTTP client with async support, HTTP/2, requests-like API