Jakub Miazek 7db6958c50 ci fix
2022-05-22 15:12:18 +02:00
2022-05-22 15:12:18 +02:00
2022-05-22 15:07:40 +02:00
2022-05-22 15:07:40 +02:00
2022-03-18 08:32:07 +01:00
2022-05-22 15:07:40 +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
2022-04-23 20:18:32 +02:00
2021-06-25 09:06:23 +02:00
2022-05-22 15:07:40 +02:00
2022-05-22 15:07:40 +02:00
2022-05-22 14:35:07 +02:00
2021-03-26 08:26:51 +01:00
2022-05-15 13:50:01 +02:00
2022-05-22 14:35:06 +02:00
2022-05-22 14:35:06 +02:00
2022-05-15 13:52:25 +02:00
2022-05-22 14:35:06 +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.7+ 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
safety               Check project and dependencies with safety https://github.com/pyupio/safety
test                 Run project tests
up                   Run project with compose

How to feed database

It took me a while to find nice data set. Hope works of Shakespeare as example will be able to cover first part with read only declarative base configuration and all type of funny selects :) Data set is coming form https://github.com/catherinedevlin/opensourceshakespeare Next models were generated with https://github.com/agronholm/sqlacodegen And after some tweaking I got desired result

Hope you enjoy it.

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