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
- Host: GitHub
- URL: https://github.com/modern-python/litestar-sqlalchemy-template
- Owner: modern-python
- License: mit
- Created: 2022-01-19T05:28:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-09T14:10:27.000Z (11 months ago)
- Last Synced: 2024-11-09T15:19:58.058Z (11 months ago)
- Topics: advanced-alchemy, alembic, asyncio, di, docker, docker-compose, ioc-container, justfile, litestar, postgresql, sqlalchemy, that-depends
- Language: Python
- Homepage:
- Size: 502 KB
- Stars: 19
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## Async template on LiteStar and SQLAlchemy 2
[](https://codecov.io/gh/modern-python/litestar-sqlalchemy-template)
[](https://github.com/modern-python/litestar-sqlalchemy-template/issues)
[](https://github.com/modern-python/litestar-sqlalchemy-template/network)
[](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 migrationsYou 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
```