fastapi
БесплатноБез исполняемых скриптовНе проверенFastAPI Python framework. Covers REST APIs, validation, dependencies, security. Use when building Python web APIs with FastAPI, configuring Pydantic models…
от itechmeat★ 24 звезды на GitHubОб этом скилле
FastAPI
This skill provides comprehensive guidance for building APIs with FastAPI.
Quick Navigation
| Topic | Reference |
|---|---|
| Getting started | references/first-steps.md |
| Path parameters | references/path-parameters.md |
| Query parameters | references/query-parameters.md |
| Request body | references/request-body.md |
| Validation | references/validation.md |
| Cookies/Headers | references/cookies-headers.md |
| Pydantic models | references/models.md |
| Forms/Files | references/forms-files.md |
| Error handling | references/error-handling.md |
| Path config | references/path-config.md |
| Dependencies | references/dependencies.md |
| Security | references/security.md |
| Telemetry | references/telemetry.md |
| Middleware | references/middleware.md |
| CORS | references/cors.md |
| Database | references/sql-databases.md |
| Project structure | references/bigger-applications.md |
| Background tasks | references/background-tasks.md |
| Metadata/Docs | references/metadata-docs.md |
| Testing | references/testing.md |
| Advanced responses | references/responses-advanced.md |
| WebSockets | references/websockets.md |
| Templates | references/templates.md |
| Settings/Env vars | references/settings.md |
| Lifespan events | references/lifespan.md |
| OpenAPI advanced | references/openapi-advanced.md |
When to Use
- Creating REST APIs with Python
- Adding endpoints with automatic validation
- Implementing OAuth2/JWT authentication
- Working with Pydantic models
- Adding dependency injection
- Configuring CORS, middleware
- Uploading files, handling forms
- Testing API endpoints
Installation
Requires Python 3.10+. Install: pip install "fastapi[standard]" (full with uvicorn) or pip install fastapi (minimal). Add python-multipart for forms/files.
Release Highlights (0.141.1 -> 0.159.1)
Breaking changes first — each one changes runtime behavior for existing code.
- Breaking —
**extraremoved from request parameters (0.155.0):Path,Query,Header,Cookie,Body,Form, andFileno longer accept arbitrary keyword arguments; unknown kwargs now raiseTypeError. Usejson_schema_extra={"custom": "value"}instead ofQuery(custom="value"). Seereferences/validation.md. - Breaking —
root_pathdeprecated (0.146.0):FastAPI(root_path=...)is deprecated. Configure the server instead:fastapi run --root-path /api/v1. - Breaking —
openapi_prefixandFastAPI(**extra)removed (0.145.0): both were deprecated and are gone;FastAPI()now rejects them. - Breaking — OpenTelemetry auto-configuration is opt-in (
0.143.0): FastAPI no longer sets up exporters fromOTEL_*environment variables on its own. SetFASTAPI_OTEL_AUTO_CONFIGURE=trueorFastAPI(telemetry={"auto_configure": True})to keep the old behavior. Apps that configure their own providers/exporters need no change. Seereferences/telemetry.md. - Breaking — form values follow browser semantics (
0.147.0–0.153.0): omittedbool/bool | Noneform fields becomeFalseand count as explicitly set (0.147.0); empty scalar form values are treated as missing — required fields error, fields with defaults use the default and stay unset inmodel_dump(exclude_unset=True), empty strings inside lists are preserved (0.149.0); unselected browser file inputs (empty filename and content) are treated as missing (0.150.0); unions of form models follow the same rules (0.153.0). - Breaking — JSON
nullis not an omitted value (0.151.0):nullin a JSON body is validated asNone— nullable types accept it, non-nullable types reject it even when a default exists. Defaults and default factories apply only when the value is omitted. Sendingnullas the whole body of an embedded/multi-parameter body is a validation error. Seereferences/request-body.md. - Breaking — defaults are not user input (
0.148.0): defaults for omittedQuery,Header,Cookie, andFormparameters and parameter-model fields are no longer validated unlessvalidate_default=True, and applying a default no longer marks a field as explicitly set (model_dump(exclude_unset=True)excludes it). Default factories run once, validation errors no longer include injected defaults ininput, andBody(validate_default=True)is honored. - Native OpenTelemetry (
0.142.0): FastAPI emits HTTP request traces, metrics, and logs plus WebSocket traces and logs. Configure it withFastAPI(telemetry={...})(tracing,metrics
Установить fastapi в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл fastapi?
FastAPI Python framework. Covers REST APIs, validation, dependencies, security. Use when building Python web APIs with FastAPI, configuring Pydantic models, implementing dependency injection, or setting up OAuth2/JWT authentication. Keywords: FastAPI, Pydantic, async, OAuth2, JWT, REST API.
Как установить скилл fastapi?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fastapi запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic