跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

FastAPI Expert

技能 已验证 活跃

Use when building high-performance async Python APIs with FastAPI and Pydantic V2. Invoke to create REST endpoints, define Pydantic models, implement authentication flows, set up async SQLAlchemy database operations, add JWT authentication, build WebSocket endpoints, or generate OpenAPI documentation. Trigger terms: FastAPI, Pydantic, async Python, Python API, REST API Python, SQLAlchemy async, JWT authentication, OpenAPI, Swagger Python.

目的

To guide developers in building robust, high-performance, and secure asynchronous Python APIs using FastAPI and Pydantic V2, covering the full development lifecycle from schema design to deployment.

功能

  • Create REST endpoints with FastAPI
  • Define Pydantic V2 validation schemas
  • Implement JWT authentication and authorization
  • Set up async SQLAlchemy database operations
  • Build WebSocket endpoints
  • Generate OpenAPI documentation

使用场景

  • Building new async Python APIs with FastAPI.
  • Refactoring existing APIs to use FastAPI and Pydantic V2.
  • Implementing secure authentication flows for Python APIs.
  • Setting up robust data validation using Pydantic models.
  • Integrating async database operations with SQLAlchemy.

非目标

  • Building non-Python APIs.
  • Using synchronous Python frameworks.
  • Implementing basic synchronous database operations.
  • Providing generic API security advice outside the context of FastAPI/Python.

工作流

  1. Analyze requirements for API endpoints, data models, and authentication needs.
  2. Design Pydantic V2 schemas for data validation.
  3. Implement asynchronous API endpoints using FastAPI and dependency injection.
  4. Secure the API with authentication, authorization, and rate limiting.
  5. Write asynchronous tests using pytest and httpx.
  6. Verify OpenAPI documentation at /docs.

实践

  • API Design
  • Asynchronous Programming
  • Data Validation
  • Authentication
  • Database Operations
  • Code Testing

先决条件

  • Python 3.7+
  • FastAPI framework
  • Pydantic V2
  • SQLAlchemy
  • asyncio

安装

请先添加 Marketplace

/plugin marketplace add jeffallan/claude-skills
/plugin install claude-skills@fullstack-dev-skills

质量评分

已验证
98 /100
1 day ago 分析

信任信号

最近提交13 days ago
星标9k
许可证MIT
状态
查看源代码

类似扩展

Python Best Practices

99

Python/FastAPI coding standards including async patterns, Pydantic v2, SQLAlchemy 2.0, and project structure. Use when writing Python code, reviewing FastAPI projects, or learning FastAPI conventions.

技能
spartan-stratos

Google Docs

100

Interact with Google Docs - create documents, search by title, read content, and edit text. Use when user asks to: create a Google Doc, find a document, read doc content, add text to a doc, or replace text in a document. Lightweight alternative to full Google Workspace MCP server with standalone OAuth authentication.

技能
sanjay3290

Python Api Endpoint Creator

99

Creates FastAPI endpoints with layered architecture (Router → Service → Repository). Use when creating new API endpoints, CRUD operations, or scaffolding a new domain module in a FastAPI project.

技能
spartan-stratos

Pydantic Validation

99

Python data validation using type hints and runtime type checking with Pydantic v2's Rust-powered core for high-performance validation in FastAPI, Django, and configuration management.

技能
bobmatnyc

Sqlalchemy Orm

75

SQLAlchemy Python SQL toolkit and ORM with powerful query builder, relationship mapping, and database migrations via Alembic

技能
bobmatnyc

X Twitter Scraper

100

当用户需要通过 Xquik 获取 X (Twitter) 数据或执行需要确认的 X 操作时使用:推文搜索、用户查找、关注者提取、媒体下载、监控、Webhook、MCP、SDK、发布、点赞、私信和个人资料更新。需要 Xquik API 密钥。切勿索要 X 登录凭据。

技能
Xquik-dev