Zum Inhalt springen
Skillpedia
APIs & Server (Backend)48k · #5547

python-fastapi-development

Was er macht

Dieser Leitfaden hilft dir, schnelle, produktionsreife Webanwendungen mit Python und der Library FastAPI zu bauen. Er deckt alles ab, von der Einrichtung bis zum Deploy, einschließlich Datenbanken, Sicherheit und Tests.

Wann du ihn nutzt

  • ✓Wenn du eine neue Web-API mit FastAPI baust.
  • ✓Wenn du ein Python-Backend entwickelst, das schnell sein muss.
  • ✓Wenn du eine Datenbank (zum Beispiel PostgreSQL) in deine Anwendung einbinden willst.

Link zum Skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/python-fastapi-development/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/python-fastapi-development/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Ich möchte mit FastAPI eine Python-Web-API bauen, um Benutzer zu verwalten, mit Login und Registrierung. Richte die PostgreSQL-Datenbank und die JWT-Authentifizierung ein.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Leitfaden führt dich Schritt für Schritt durch den Prozess: zuerst das Projekt einrichten, dann die Datenbank, danach die API-Routen, anschließend die Sicherheit und zum Schluss, wie du testen und deployen kannst.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Python/FastAPI Development Workflow

Overview

Specialized workflow for building production-ready Python backends with FastAPI, featuring async patterns, SQLAlchemy ORM, Pydantic validation, and comprehensive API patterns.

When to Use This Workflow

Use this workflow when:

  • Building new REST APIs with FastAPI
  • Creating async Python backends
  • Implementing database integration with SQLAlchemy
  • Setting up API authentication
  • Developing microservices

Workflow Phases

Phase 1: Project Setup

Skills to Invoke

  • app-builder - Application scaffolding
  • python-development-python-scaffold - Python scaffolding
  • fastapi-templates - FastAPI templates
  • uv-package-manager - Package management

Actions

  1. Set up Python environment (uv/poetry)
  2. Create project structure
  3. Configure FastAPI app
  4. Set up logging
  5. Configure environment variables

Copy-Paste Prompts

Use @fastapi-templates to scaffold a new FastAPI project
Use @python-development-python-scaffold to set up Python project structure

Phase 2: Database Setup

Skills to Invoke

  • prisma-expert - Prisma ORM (alternative)
  • database-design - Schema design
  • postgresql - PostgreSQL setup
  • pydantic-models-py - Pydantic models

Actions

  1. Design database schema
  2. Set up SQLAlchemy models
  3. Create database connection
  4. Configure migrations (Alembic)
  5. Set up session management

Copy-Paste Prompts

Use @database-design to design PostgreSQL schema
Use @pydantic-models-py to create Pydantic models for API

Phase 3: API Routes

Skills to Invoke

  • fastapi-router-py - FastAPI routers
  • api-design-principles - API design
  • api-patterns - API patterns

Actions

  1. Design API endpoints
  2. Create API routers
  3. Implement CRUD operations
  4. Add request validation
  5. Configure response models

Copy-Paste Prompts

Use @fastapi-router-py to create API endpoints with CRUD operations
Use @api-design-principles to design RESTful API

Phase 4: Authentication

Skills to Invoke

  • auth-implementation-patterns - Authentication
  • api-security-best-practices - API security

Actions

  1. Choose auth strategy (JWT, OAuth2)
  2. Implement user registration
  3. Set up login endpoints
  4. Create auth middleware
  5. Add password hashing

Copy-Paste Prompts

Use @auth-implementation-patterns to implement JWT authentication

Phase 5: Error Handling

Skills to Invoke

  • fastapi-pro - FastAPI patterns
  • error-handling-patterns - Error handling

Actions

  1. Create custom exceptions
  2. Set up exception handlers
  3. Implement error responses
  4. Add request logging
  5. Configure error tracking

Copy-Paste Prompts

Use @fastapi-pro to implement comprehensive error handling

Phase 6: Testing

Skills to Invoke

  • python-testing-patterns - pytest testing
  • api-testing-observability-api-mock - API testing

Actions

  1. Set up pytest
  2. Create test fixtures
  3. Write unit tests
  4. Implement integration tests
  5. Configure test database

Copy-Paste Prompts

Use @python-testing-patterns to write pytest tests for FastAPI

Phase 7: Documentation

Skills to Invoke

  • api-documenter - API documentation
  • openapi-spec-generation - OpenAPI specs

Actions

  1. Configure OpenAPI schema
  2. Add endpoint documentation
  3. Create usage examples
  4. Set up API versioning
  5. Generate API docs

Copy-Paste Prompts

Use @api-documenter to generate comprehensive API documentation

Phase 8: Deployment

Skills to Invoke

  • deployment-engineer - Deployment
  • docker-expert - Containerization

Actions

  1. Create Dockerfile
  2. Set up docker-compose
  3. Configure production settings
  4. Set up reverse proxy
  5. Deploy to cloud

Copy-Paste Prompts

Use @docker-expert to containerize FastAPI application

Technology Stack

Category Technology
Framework FastAPI
Language Python 3.11+
ORM SQLAlchemy 2.0
Validation Pydantic v2
Database PostgreSQL
Migrations Alembic
Auth JWT, OAuth2
Testing pytest

Quality Gates

  • All tests passing (>80% coverage)
  • Type checking passes (mypy)
  • Linting clean (ruff, black)
  • API documentation complete
  • Security scan passed
  • Performance benchmarks met

Related Workflow Bundles

  • development - General development

…

Häufige Fragen

Was ist FastAPI?

FastAPI ist ein modernes, schnelles Tool zum Bauen von Web-APIs mit Python. Damit fällt es leichter, Webdienste zu erstellen.

Was ist SQLAlchemy?

SQLAlchemy ist ein Tool, das deinem Python-Code hilft, mit relationalen Datenbanken wie PostgreSQL zu arbeiten.

Was ist Pydantic?

Pydantic dient dazu, die Daten zu prüfen, die in deine API hineinkommen und aus ihr herauskommen. So stellst du sicher, dass alles im richtigen Format ist.

Details

Originalbeschreibung des Autors

Python FastAPI backend development with async patterns, SQLAlchemy, Pydantic, authentication, and production API patterns.

repo: sickn33/agentic-awesome-skills

Beliebtheit

GitHub-Sterne
48k
Platz im Ranking
#5547
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills