fastapi

Build FastAPI applications with Pydantic v2, SQLAlchemy 2.0 async, and JWT authentication.

28.1k|5.0k|Updated Apr 8, 2020
One-click install
npx skills add https://github.com/srbhr/Resume-Matcher --skill fastapi-srbhr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fastapi
Source: https://github.com/srbhr/Resume-Matcher/tree/main/.claude/skills/fastapi
Command: npx skills add https://github.com/srbhr/Resume-Matcher --skill fastapi-srbhr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you build robust FastAPI applications by providing production-tested templates and patterns.

Core Features & Use Cases

  • Production-ready project structure and patterns for FastAPI apps.
  • JWT authentication, Pydantic v2 validation, and async SQLAlchemy 2.0 integration.
  • Guidance on error handling, validation, and OpenAPI/schema best practices.

Quick Start

Use uv to bootstrap a minimal FastAPI project, install dependencies, and run the development server with uvicorn.

Frequently Asked Questions about fastapi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a production-ready FastAPI application with async SQLAlchemy?

Production-ready FastAPI applications use a domain-based project structure integrated with async SQLAlchemy 2.0 for non-blocking database operations. This pattern ensures robust API design and maintainable code organization.

What is the best way to implement JWT authentication in a FastAPI project?

The best way to implement JWT authentication in FastAPI is by using production-tested templates that cover dependency injection and proper status codes. This ensures secure token validation across common project endpoints.

Does this FastAPI template work with Pydantic v2 for request validation and OpenAPI integration?

Yes, this FastAPI template fully supports Pydantic v2 for request validation and OpenAPI schema integration. It provides established patterns for validation rules and automatic documentation generation.

Can I use uv to bootstrap a minimal FastAPI project and run it with uvicorn?

Yes, you can use uv to bootstrap a minimal FastAPI project, install required dependencies, and run the development server with uvicorn. This setup quickly satisfies requirements for async I/O and dependency injection.

How do I handle errors and proper HTTP status codes in FastAPI?

You handle errors and proper HTTP status codes in FastAPI by following production-tested patterns for error handling and validation. This ensures your API returns correct status responses and integrates with OpenAPI.

Why use async I/O and dependency injection in FastAPI for production apps?

You use async I/O and dependency injection in FastAPI to build highly concurrent applications with maintainable, decoupled code. This pattern satisfies production requirements and scales efficiently across common projects.