Production-ready dockerized async REST API on FastAPI with SQLAlchemy and PostgreSQL
- tests on
pytest
with automatic rollback after each test case - db session stored in Python's
context variable
- configs for
mypy
,pylint
,isort
andblack
Alembic
for DB migrations- CI with Github
task -l # list of tasks with descriptions
python3 -m venv venv
source venv/bin/activate
poetry install
Poetry is python package manager.
Poetry resolve dependencies and conflicts in package and make it fast.
poetry lock
lock dependenciespoetry update
lock, update and install dependenciespoetry install
for install dependencies from pyproject.tomlpoetry add <package>
for adding dependency with check on conflictspoetry remove <package>
for removepoetry self update
update poetry
Task is a task runner / build tool that aims to be simpler and easier to use than, for example, GNU Make.
task -l
- list of tasks with descriptionstask -a
- list of all tasks