python-3.xfirebasefirebase-realtime-databasefastapipyrebase

How to setup FastAPI comunication with firestore through Pyrebase4


I'm new in FastAPI and NoSQL databases. I've worked with FastAPI only with relational database PostgreSQL using SQLAlchemy. This NoSQL example uses couchbase, and I didn't found any info or example of using FastAPI with Pyrebase4

Is there a simple way to connect FastAPI with Firestore? Any information could help.


Solution

  • I've opened an issue on FastAPI github asking for help: fastapi_issue.

    It turns out that Pyrebase4 has no support for Firestore, only Realtime Database.

    My option is to use firebase_admin SDK, if I want to deal with Firestore.