abhishektiwari / fastapi-sqlalchemy-asyncpg

Simple integration of FastAPI with SQLAlchemy 1.4 as ORM with PostgreSQL on asyncpg driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastapi-sqlalchemy-asyncpg

developer language CI license visitors

Example for FastAPI integration with SQLAlchemy ORM with PostgreSQL via asyncpg a fast Database Client Library for python/asyncio.

Beside of using latest and greatest version of SQLAlchemy with it robustness, powerfulness and speed of asyncpg there is FastAPI (modern, fast (high-performance), web framework for building APIs with Python 3.10+ based on standard Python type hints.) already reviewed on thoughtworks.

How to Setup

To build , run and test and more ... use magic of make help to play with this project.

make help

and you receive below list:

build                Build project with compose
down                 Reset project containers with compose
format               Format project code.
help                 Show this help
lint                 Lint project code.
lock                 Refresh pipfile.lock
requirements         Refresh requirements.txt from pipfile.lock
safety               Check project and dependencies with safety https://github.com/pyupio/safety
test                 Run project tests
up                   Run project with compose

Hope you enjoy it.

About

Simple integration of FastAPI with SQLAlchemy 1.4 as ORM with PostgreSQL on asyncpg driver

License:MIT License


Languages

Language:Python 88.9%Language:Makefile 7.0%Language:Dockerfile 3.3%Language:Shell 0.9%