如何通过 Pyrebase4 设置与 firestore 的 FastAPI 通信

How to setup FastAPI comunication with firestore through Pyrebase4

我是 FastAPI 和 NoSQL 数据库的新手。 我只使用 SQLAlchemy 将 FastAPI 与关系数据库 PostgreSQL 一起使用。 这个 NoSQL example uses couchbase, and I didn't found any info or example of using FastAPI with Pyrebase4

有没有一种简单的方法可以将 FastAPI 与 Firestore 连接起来?任何信息都可以提供帮助。

我在 FastAPI github 上提出了一个问题寻求帮助:fastapi_issue

原来Pyrebase4不支持Firestore,只支持Realtime Database

如果我想处理 Firestore,我的选择是使用 firebase_admin SDK。