Async template on Starlite and SQLAlchemy 1.4
Description
Production-ready dockerized async REST API on Starlite with SQLAlchemy and PostgreSQL
Key Features
- tests on
pytest
with automatic rollback after each test case - db session stored in Python's
context variable
- separate requirements files for dev and production using
pip-tools
- configs for
mypy
,pylint
,isort
andblack
Alembic
for DB migrations- CI with Github
git clone
run
After make help
Prepare virtual environment
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install pip-tools