用途:提供构建生产级 FastAPI API 的系统性知识,覆盖从基础开发到大规模部署。
主要能力:数据库(SQLModel、依赖注入 CRUD、异步操作、连接池、Alembic 迁移、Neon Serverless PostgreSQL);安全认证(OAuth2 密码流、JWT、Argon2 哈希、OAuth2 scopes、CORS、限流、API Key);部署与伸缩(Docker、Kubernetes、Uvicorn + Gunicorn、HPA、Prometheus、Redis 缓存、Vercel/AWS/GCP 指南);高级特性(依赖注入模式、中间件、WebSocket、后台任务、校验模型、流式响应、文件上传、测试、事件处理)。
使用方式:技能内含 assets/project-template/ 模板,可用 cp -r assets/project-template/* your-project/ 复制;Docker 使用 assets/Dockerfile;Kubernetes 使用 assets/kubernetes-deployment.yaml。基础应用以 uvicorn main:app --reload 运行。参考资料见 references/database.md、references/security.md、references/deployment.md、references/advanced.md。
适用场景:开发 FastAPI REST API、接入数据库与鉴权、容器化与 Kubernetes 部署、性能监控与横向扩展。
限制:资料未提供具体收费、价格、平台兼容范围或效果数据,暂未提供。