fastapi
Installation
SKILL.md
FastAPI
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.8+ based on standard Python type hints. It is one of the fastest Python frameworks available.
When to Use
- High-Performance Python Web APIs: Developing modern async APIs built on Starlette and Pydantic.
- AI & Machine Learning Model Serving: Serving PyTorch, TensorFlow, Scikit-learn, and Hugging Face inference endpoints.
- Automatic OpenAPI & Swagger Documentation: Generating interactive documentation with zero manual configuration.
- Data Validation & Type-Safe Payloads: Validating query parameters, paths, headers, and request bodies with Pydantic v2.
Quick Start
from fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()