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: 22 days 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T05:58:34.000Z (5 months ago)
- Last Synced: 2024-07-30T14:18:37.639Z (4 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
[![Test Coverage](https://codecov.io/gh/modern-python/fastapi-sqlalchemy-template/branch/main/graph/badge.svg)](https://codecov.io/gh/modern-python/fastapi-sqlalchemy-template)
[![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)### 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 [modern-di](https://github.com/modern-python/modern-di/) - my DI framework
- Linting and formatting using `ruff` and `mypy`
- `Alembic` for DB migrations### After `git clone` run
```bash
just --list
```