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
- APIs: The default choice for modern Python APIs.
- Machine Learning: Native integration with Pydantic makes JSON <-> Model interaction seamless.
- Performance: Built on Starlette and Pydantic v2, it rivals Node.js and Go in benchmarks.
Quick Start
from fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()