fastapi

Generate a FastAPI project template with SQLAlchemy, Pydantic, and Typer CLI.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/bswrundquist/devtools --skill fastapi-bswrundquist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fastapi
Source: https://github.com/bswrundquist/devtools/tree/main/src/devtools/templates/claude/user/.claude/skills/fastapi
Command: npx skills add https://github.com/bswrundquist/devtools --skill fastapi-bswrundquist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and structure for developing production-ready FastAPI applications, streamlining the process of building APIs with Python.

Core Features & Use Cases

  • Project Structure: A well-organized directory layout for maintainability.
  • Configuration: Centralized settings management using Pydantic-Settings.
  • Database Integration: SQLAlchemy ORM setup for both synchronous and asynchronous operations.
  • API Development: Includes schemas, CRUD operations, dependency injection, and authentication.
  • External Services: Integration examples for Stripe and SendGrid.
  • Deployment: Typer CLI for easy server management.
  • Use Case: Quickly scaffold a new microservice for user management and experiment tracking, complete with database models, API endpoints, and background email notifications.

Quick Start

Follow the installation instructions to set up your FastAPI project with core dependencies and SQLAlchemy.

Frequently Asked Questions about fastapi

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

FAQPage Schema
How do I structure a FastAPI project for production with SQLAlchemy and Pydantic?

A production FastAPI project structure should centralize Pydantic settings, separate schemas from CRUD operations, and configure SQLAlchemy for async or sync database operations. This template provides that organized directory layout for maintainability and deployment.

What's the best way to set up dependency injection and authentication in a FastAPI application?

Setting up dependency injection and authentication in a FastAPI application is best handled by isolating these concerns into dedicated modules. This Skill provides a complete template that includes both dependency injection patterns and authentication setup out of the box.

Can I integrate external services like Stripe and SendGrid into my FastAPI microservice?

Yes, you can integrate external services like Stripe and SendGrid into your FastAPI microservice. This Skill includes integration examples for both platforms, enabling features such as background email notifications and payment processing within your API.

Does this FastAPI template support asynchronous database operations with SQLAlchemy?

Yes, this FastAPI template supports asynchronous database operations with SQLAlchemy. It includes ORM setup configured specifically for both synchronous and asynchronous operations, following best practices for async and await implementation.

How do I manage configuration and deployment settings for a FastAPI app?

Managing configuration for a FastAPI app is handled through centralized Pydantic-Settings, while deployment is streamlined using a Typer CLI. This combination provides easy server management and production-ready environment configuration.

When do I need a CLI tool like Typer for FastAPI deployment?

You need a CLI tool like Typer for FastAPI deployment when you require easy server management and execution commands outside the web environment. This Skill includes a Typer CLI to streamline production deployment and administrative tasks.