python-fastapi
Installation
SKILL.md
Python FastAPI
Overview
FastAPI is a modern Python web framework for building APIs with automatic documentation. This skill should be invoked when building high-performance APIs that benefit from Python's type hints and FastAPI's automatic validation.
Core Principles
- Type Hints: Leverage Python type hints for validation
- Automatic Docs: OpenAPI/Swagger generated automatically
- Async Support: Native async/await support
- Dependency Injection: Use Depends for clean code
Preparation Checklist
- Install FastAPI:
pip install fastapi - Choose ASGI server (Uvicorn, Hypercorn)
- Plan API structure
- Define Pydantic models