Example integration for FastAPI with SQLAlchemy ORM and PostgreSQL
Top 64.9% on sourcepulse
This project provides a comprehensive example of integrating FastAPI with SQLAlchemy, asyncpg, and Pydantic v2 for building high-performance asynchronous web APIs. It targets Python developers seeking a robust, modern stack for PostgreSQL applications, offering features like user authentication, background job scheduling, and LLM integration.
How It Works
The project leverages FastAPI's asynchronous capabilities for efficient request handling, SQLAlchemy 2.0 for ORM operations, and asyncpg for high-performance PostgreSQL connectivity. It utilizes Pydantic v2 for data validation and serialization. Key features include JWT-based user authentication with Redis, APScheduler for background tasks, and integration with local LLMs via Ollama, demonstrating a full-stack approach to modern Python web development.
Quick Start & Requirements
make docker-build
, make docker-up
, make docker-apply-db-migrations
, and make docker-feed-database
.Highlighted Details
Maintenance & Community
uv
for package management.uv
and ruff
as key tooling inspirations.Licensing & Compatibility
Limitations & Caveats
The project's license is not specified, which may impact commercial adoption or integration into closed-source projects.
6 days ago
Inactive