2022-04-22 21:05:39 +02:00
2022-02-14 21:22:45 +01:00
2021-03-26 13:07:42 +01:00
2022-03-18 08:32:07 +01:00
2022-04-04 20:22:28 +02:00
2021-05-24 14:07:57 +02:00
2021-06-25 09:05:52 +02:00
2021-03-26 11:07:52 +01:00
2021-03-26 11:07:52 +01:00
2021-06-25 09:06:23 +02:00
2021-09-01 09:48:19 +02:00
2021-11-27 09:23:15 +01:00
2021-03-26 08:26:51 +01:00
2022-04-22 21:05:39 +02:00
2022-04-22 21:05:39 +02:00
2022-04-04 20:22:38 +02:00

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.

It tooks me a while to find nice data set. Hope shkezz as example will be able to cover first part with read only declarative base and all type of selects :) I took data set form https://github.com/catherinedevlin/opensourceshakespeare Next generated declarative base with https://github.com/agronholm/sqlacodegen And after soem twiking i get desired result

Description
No description provided
Readme MIT 11 MiB
Languages
Python 87.2%
HTML 7.1%
Makefile 3.1%
Dockerfile 2.1%
Mako 0.5%