Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/modern-python/fastapi-sqlalchemy-template

Dockerized web application with DI on FastAPI, sqlalchemy2, PostgreSQL
https://github.com/modern-python/fastapi-sqlalchemy-template

alembic asyncio di docker fastapi ioc-container poetry postgresql sqlalchemy taskfile that-depends

Last synced: 3 months ago
JSON representation

Dockerized web application with DI on FastAPI, sqlalchemy2, PostgreSQL

Awesome Lists containing this project

README

        

## Async template on FastAPI and SQLAlchemy 2

[![GitHub issues](https://img.shields.io/github/issues/modern-python/fastapi-sqlalchemy-template)](https://github.com/modern-python/fastapi-sqlalchemy-template/issues)
[![GitHub forks](https://img.shields.io/github/forks/modern-python/fastapi-sqlalchemy-template)](https://github.com/modern-python/fastapi-sqlalchemy-template/network)
[![GitHub stars](https://img.shields.io/github/stars/modern-python/fastapi-sqlalchemy-template)](https://github.com/modern-python/fastapi-sqlalchemy-template/stargazers)
[![GitHub license](https://img.shields.io/github/license/modern-python/fastapi-sqlalchemy-template)](https://github.com/modern-python/fastapi-sqlalchemy-template/blob/main/LICENSE)

### Description
Production-ready dockerized async REST API on FastAPI with SQLAlchemy and PostgreSQL

## Key Features
- tests on `pytest` with automatic rollback after each test case
- IOC (Inversion of Control) container built on [that-depends](https://github.com/modern-python/that-depends/) - my DI framework
- Linting and formatting using `ruff` and `mypy`
- `Alembic` for DB migrations

### After `git clone` run
```bash
task -l # list of tasks with descriptions
```