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

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

Dockerized web application on LiteStar, SQLAlchemy2, PostgreSQL
https://github.com/modern-python/litestar-sqlalchemy-template

advanced-alchemy alembic asyncio di docker docker-compose ioc-container justfile litestar postgresql sqlalchemy that-depends

Last synced: 3 months ago
JSON representation

Dockerized web application on LiteStar, SQLAlchemy2, PostgreSQL

Awesome Lists containing this project

README

          

## Async template on LiteStar and SQLAlchemy 2

[![Test Coverage](https://codecov.io/gh/modern-python/litestar-sqlalchemy-template/branch/main/graph/badge.svg)](https://codecov.io/gh/modern-python/litestar-sqlalchemy-template)
[![GitHub issues](https://img.shields.io/github/issues/modern-python/litestar-sqlalchemy-template)](https://github.com/modern-python/litestar-sqlalchemy-template/issues)
[![GitHub forks](https://img.shields.io/github/forks/modern-python/litestar-sqlalchemy-template)](https://github.com/modern-python/litestar-sqlalchemy-template/network)
[![GitHub stars](https://img.shields.io/github/stars/modern-python/litestar-sqlalchemy-template)](https://github.com/modern-python/litestar-sqlalchemy-template/stargazers)

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

## Key Features
- tests on `pytest` with automatic rollback after each test case
- IOC (Inversion of Control) container built on [modern-di](https://github.com/modern-python/modern-di/)
- Observability tools integration built on [lite-bootstrap](https://github.com/modern-python/lite-bootstrap/)
- Linting and formatting using `ruff` and `mypy`
- `Alembic` for DB migrations

You can clone this project or use [this template](https://github.com/modern-python/modern-python-template) for fast [micro]service creation from scratch.

### After `git clone` run
```bash
just --list
```