You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-23Lines changed: 22 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,22 +48,10 @@ This example demonstrates the seamless integration of [FastAPI](https://fastapi.
48
48
with [Pydantic 2.0](https://github.com/pydantic/pydantic), a robust and powerful data validation library.
49
49
The integration is further enhanced by the use of [SQLAlchemy ORM](https://www.sqlalchemy.org/), a popular and feature-rich Object-Relational Mapping tool,
50
50
and [PostgreSQL17](https://www.postgresql.org/docs/17/release.html) relational database.
51
-
52
51
The entire stack is connected using the [asyncpg](https://github.com/MagicStack/asyncpg) Database Client Library,
53
52
which provides a robust and efficient way to interact with PostgreSQL databases in Python,
54
53
leveraging the power of asyncio and event loops.
55
54
56
-
Notably, this example showcases the latest and greatest versions of SQLAlchemy and psycopg,
57
-
which are renowned for their robustness, power, and speed. The inclusion of FastAPI adds a modern, fast, and high-performance web framework to the mix
58
-
allowing for the rapid development of APIs with Python 3.13.
59
-
60
-
FastAPI has received significant recognition in the industry, including a review on thoughtworks Technology Radar in April 2021,
61
-
where it was classified as a Trial technology, with comments praising its performance, ease of use,
62
-
and features such as API documentation using OpenAPI. Additionally, FastAPI was recognized in the Python Developers Survey 2023 Results,
63
-
conducted by the Python Software Foundation and JetBrains, where it was reported that 1 in 4 Python developers use FastAPI,
64
-
with a 4 percentage point increase from the previous year.
65
-
66
-
67
55
### Built With
68
56
[![FastAPI][fastapi.tiangolo.com]][fastapi-url]
69
57
[![Pydantic][pydantic.com]][pydantic-url]
@@ -73,6 +61,11 @@ with a 4 percentage point increase from the previous year.
73
61
[![asyncpg][asyncpg.github.io]][asyncpg-url]
74
62
[![alembic][alembic.sqlalchemy.org]][alembic-url]
75
63
[![rich][rich.readthedocs.io]][rich-url]
64
+
[![redis][redis.io]][redis-url]
65
+
[![structlog][structlog.org]][structlog-url]
66
+
[![rotoger][rotoger]][rotoger-url]
67
+
[![granian][granian]][granian-url]
68
+
76
69
77
70
78
71
@@ -106,7 +99,7 @@ Next models were generated with https://github.com/agronholm/sqlacodegen
106
99
107
100
To elevate the logging capabilities beyond simple colored output,
108
101
this project has transitioned to [Rotoger](https://github.com/tinyplugins/rotoger).
109
-
This powerful library provides a comprehensive, production-ready logging setup for modern asynchronous applications,
102
+
This tiny library provides a comprehensive, production-ready logging setup for modern asynchronous applications,
110
103
addressing challenges like log management, performance, and readability.
111
104
112
105
Rotoger is built upon the excellent [structlog](http://structlog.org/) library and brings several key advantages:
@@ -218,7 +211,7 @@ I've included a few of my favorites to kick things off!
218
211
219
212
## Change Log
220
213
<details>
221
-
<summary>2025 (3 changes)</summary>
214
+
<summary>2025 (7 changes)</summary>
222
215
<ul>
223
216
<li>[SEP 2 2025] add sample high availability with nginx as load balancer</li>
224
217
<li>[AUG 23 2025] intro exception handlers</li>
@@ -280,21 +273,27 @@ I've included a few of my favorites to kick things off!
Copy file name to clipboardExpand all lines: pyproject.toml
+30-33Lines changed: 30 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -1,47 +1,44 @@
1
1
[project]
2
2
name = "fastapi-sqlalchemy-asyncpg"
3
-
version = "0.22.0"
3
+
version = "1.22.0"
4
4
description = "A modern FastAPI application with SQLAlchemy 2.0 and AsyncPG for high-performance async database operations. Features include JWT authentication with Redis token storage, password hashing, connection pooling, data processing with Polars, Rich logging, task scheduling with APScheduler, and Shakespeare datasets integration."
0 commit comments