Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/modern-python/fastapi-sqlalchemy-template
- Owner: modern-python
- License: mit
- Created: 2021-02-21T16:45:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T05:58:34.000Z (4 months ago)
- Last Synced: 2024-07-30T14:18:37.639Z (3 months ago)
- Topics: alembic, asyncio, di, docker, fastapi, ioc-container, poetry, postgresql, sqlalchemy, taskfile, that-depends
- Language: Python
- Homepage:
- Size: 577 KB
- Stars: 90
- Watchers: 3
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - modern-python/fastapi-sqlalchemy-template - Dockerized web application with DI on FastAPI, sqlalchemy2, PostgreSQL (Python)
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
```