api-fastapi-modern

Installation
SKILL.md

FastAPI Modern Development

FastAPI is the standard for modern Python APIs, offering high performance (comparable to Go/Node.js) and automatic documentation.

Type Safety (Pydantic)

  • Schemas: Use Pydantic models for request/response validation and serialization.
  • Automatic Docs: OpenAPI (Swagger) and Redoc are generated automatically based on type hints.

Asynchronous Support

  • async def: High concurrency with Python's asyncio loop.
  • Dependency Injection: A powerful system for managing database sessions, auth, and logic.

Best Practices

  • Strict Typing: Use Python 3.10+ union types (int | None) and Annotated for cleaner dependencies.
  • Error Handling: Use HTTPException with consistent JSON structures.
Installs
1
GitHub Stars
1
First Seen
Jun 29, 2026
api-fastapi-modern — jcorpac/ai-skills-library