fastapi-alembic-sqlmodel-async  by jonra1993

Async FastAPI backend template with SQLModel ORM

created 3 years ago
1,137 stars

Top 34.6% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a comprehensive template for building asynchronous web applications using FastAPI, Pydantic 2.0, Alembic, and async SQLModel. It targets developers seeking a robust starting point for modern Python APIs, offering integrated authentication, role-based access control, and asynchronous task management with Celery.

How It Works

The template leverages FastAPI for its high performance and ease of use, combined with SQLModel for asynchronous ORM operations compatible with SQLAlchemy 2.0. It implements JWT-based authentication and role-based access control for security. Asynchronous tasks are handled via Celery with Redis as a broker and PostgreSQL as a backend, utilizing celery-sqlalchemy-scheduler for task persistence. The architecture includes Caddy as a reverse proxy for routing and static file serving, and Minio for object storage.

Quick Start & Requirements

Highlighted Details

  • Full async CRUD operations with JWT authentication and RBAC.
  • Integrated Celery for asynchronous and scheduled tasks.
  • Minio for object storage and Caddy for reverse proxying.
  • UUID7 draft implementation for database unique IDs.
  • Automated API documentation generation and pytest for testing.
  • Includes a basic Langchain/OpenAI chatbot example via websockets.

Maintenance & Community

Licensing & Compatibility

  • License: MIT.
  • Compatible with commercial use and closed-source linking.

Limitations & Caveats

The project is a template with a TODO list including adding comprehensive testing, JSONB field support, async Celery-SQLAlchemy-scheduler, and production deployment instructions via CI/CD. A Next.js frontend is also planned.

Health Check
Last commit

1 year ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
49 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Daniel Han Daniel Han(Cofounder of Unsloth), and
1 more.

airweave by airweave-ai

0.5%
3k
Semantic MCP server for AI agents
created 7 months ago
updated 15 hours ago
Starred by Nat Friedman Nat Friedman(Former CEO of GitHub), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
7 more.

langflow by langflow-ai

3.3%
95k
Visual tool for AI agent and workflow creation/deployment
created 2 years ago
updated 9 hours ago
Feedback? Help us improve.