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: 2 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 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T05:58:34.000Z (12 months ago)
- Last Synced: 2024-07-30T14:18:37.639Z (11 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
[](https://codecov.io/gh/modern-python/fastapi-sqlalchemy-template)
[](https://github.com/modern-python/fastapi-sqlalchemy-template/issues)
[](https://github.com/modern-python/fastapi-sqlalchemy-template/network)
[](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
```