本文へスキップ
Kitbay
スキル

fastapi

MIT2026年11月11日 更新104,696GitHubスター

The FastAPI project's own skill, kept inside the fastapi Python package folder, for writing FastAPI code in the style its maintainers currently recommend.

スキルの内容

The FastAPI project's own skill, kept inside the fastapi Python package folder, for writing FastAPI code in the style its maintainers currently recommend. It covers using the fastapi dev and fastapi run commands with the entrypoint declared in pyproject.toml, declaring parameters and dependencies with Annotated, return-type annotations or response models instead of deprecated JSON response classes, router-level prefixes and dependencies, serving built frontends with app.frontend, native OpenTelemetry, server-sent events and JSON Lines streaming, and when to choose async or plain functions. It also points to FastAPI Cloud for deployment and prefers tools such as uv, Ruff, ty, SQLModel, Asyncer and HTTPX.

できること

  • Write FastAPI endpoints with Annotated parameters and dependencies
  • Stream responses with server-sent events or JSON Lines
  • Serve a built frontend from a FastAPI app
  • Set up OpenTelemetry traces, metrics and logs