Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. FastAPI
  3. fastapi-alembic-sqlmodel-async

fastapi-alembic-sqlmodel-async

MITPython

A production-ready FastAPI project template with async SQLModel, Alembic, JWT authentication, RBAC, Celery, and Docker.

GitHubGitHub
1.3k stars170 forks0 contributors

What is fastapi-alembic-sqlmodel-async?

fastapi-alembic-sqlmodel-async is a production-ready project template for building asynchronous web APIs with FastAPI. It provides a complete setup including async database interactions using SQLModel, authentication with JWT and role-based access control, background task processing with Celery, and Docker-based deployment. The template solves the problem of starting a new FastAPI project from scratch by offering a well-structured, opinionated foundation that incorporates modern Python best practices.

Target Audience

Python developers and teams looking to quickly bootstrap a FastAPI-based backend with async database support, authentication, and task queues. It's particularly useful for those building scalable web applications or microservices who want to avoid repetitive setup and follow established patterns.

Value Proposition

Developers choose this template because it bundles essential production-grade features into a single, cohesive starter kit. It saves significant setup time, enforces code quality through integrated tooling, and demonstrates real-world patterns like file uploads, WebSocket integrations, and scheduled tasks, all while maintaining full async compatibility.

Overview

This is a project template which uses FastAPI, Pydantic 2.0, Alembic and async SQLModel as ORM. It shows a complete async CRUD using authentication and role base access control.

Use Cases

Best For

  • Bootstrapping a new FastAPI project with async database support
  • Implementing JWT authentication and role-based access control in FastAPI
  • Adding background task processing with Celery to a Python web app
  • Learning modern async patterns with SQLModel and FastAPI
  • Setting up a Dockerized development environment for FastAPI
  • Building APIs that require file uploads and object storage with MinIO

Not Ideal For

  • Simple CRUD APIs that don't require JWT authentication, background tasks, or file storage
  • Teams preferring minimal dependencies or a sync-first approach without Docker overhead
  • Resource-constrained environments where running PostgreSQL, Redis, and MinIO containers is prohibitive
  • Projects needing a non-opinionated starter that allows full control over tooling and architecture

Pros & Cons

Pros

Comprehensive Async Foundation

Integrates async SQLModel with FastAPI for type-safe database operations, leveraging Pydantic V2 and SQLAlchemy 2.0, as highlighted in the key features for modern async patterns.

Production-Ready Tooling

Includes Docker Compose for development and production, Celery with Redis for task queues, and MinIO for file storage, covering common deployment and scalability needs.

Built-in Security and RBAC

Implements JWT-based authentication with role-based access control out of the box, with sample users and roles provided in the database setup section.

Code Quality Enforcement

Integrates Black, Ruff, mypy, and SonarQube for formatting, linting, type checking, and static analysis, with dedicated Make commands to maintain standards.

Cons

Complex Initial Setup

Requires installing Docker, Make, Poetry, and Python 3.10+, which can be a barrier for quick onboarding, as detailed in the lengthy prerequisites section.

Heavy Dependency Stack

Relies on multiple external services (PostgreSQL, Redis, MinIO) even for basic functionality, increasing resource usage and complexity for lightweight projects.

Incomplete and Evolving Features

The TODO list admits gaps like async support for Celery scheduler and testing improvements, meaning users may need to patch or wait for updates.

Frequently Asked Questions

Quick Stats

Stars1,270
Forks170
Contributors0
Open Issues9
Last commit1 month ago
CreatedSince 2022

Tags

#fastapi#alembic#asyncio#rbac#async-python#project-template#sqlalchemy#postgresql#sqlmodel#docker#jwt-authentication#celery

Built With

M
Minio
C
Caddy
F
FastAPI
P
PostgreSQL
A
Alembic
P
Pydantic
C
Celery
S
SQLModel
P
Poetry
P
Python
D
Docker
R
Redis

Included in

FastAPI11.2k
Auto-fetched 3 hours ago

Related Projects

Full Stack FastAPI and PostgreSQL - Base Project GeneratorFull Stack FastAPI and PostgreSQL - Base Project Generator

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.

Stars42,939
Forks8,472
Last commit1 day ago
FastAPI templateFastAPI template

Feature rich robust FastAPI template.

Stars2,780
Forks237
Last commit8 days ago
FastAPI and React TemplateFastAPI and React Template

🚀 Cookiecutter Template for FastAPI + React Projects. Using PostgreSQL, SQLAlchemy, and Docker

Stars2,581
Forks371
Last commit2 years ago
openapi-python-clientopenapi-python-client

Generate modern Python clients from OpenAPI

Stars1,941
Forks278
Last commit9 hours ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub