Pular para o conteúdo
Kitbay
Skill

fastapi

MITAtualizado em 11 de nov. de 2026104.696Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

  • 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