nhorvath / Pyrebase4

A simple python wrapper for the Firebase API. ⛺
254 stars 63 forks source link

[QUESTION] Recommended way to use Pyrebase4 with FastAPI? #25

Closed JuniorGunner closed 3 years ago

JuniorGunner commented 3 years ago

Can I use Pyrebase4 with FastAPI? I didn't find any info or examples of use with FastAPI.

nhorvath commented 3 years ago

I don't know what that is.

On Wed, Jan 13, 2021, 8:50 PM Junior notifications@github.com wrote:

Can I use Pyrebase4 wit hfastAPI? I didn't find any info or examples of use with FastAPI.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nhorvath/Pyrebase4/issues/25, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABIJXAMSTUFH3XLV7AF6TLSZZEWXANCNFSM4WBWSQFA .

JuniorGunner commented 3 years ago

It's a framework to develop REST API's quick. Like Flask and django-rest-framework. https://fastapi.tiangolo.com/

nhorvath commented 3 years ago

You should be able to, but I don't know what you mean by compatible with it.

On Wed, Jan 13, 2021, 8:59 PM Junior notifications@github.com wrote:

It's a framework to develop REST API's quick. like Flask or django-rest-framework. https://fastapi.tiangolo.com/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nhorvath/Pyrebase4/issues/25#issuecomment-759874108, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABIJXCCAMUWJD6YVJHHRPTSZZFWJANCNFSM4WBWSQFA .

JuniorGunner commented 3 years ago

I think compatible is not the right word. I wanted to know how to setup the comunication between FastAPI and the firebase data storage (Firestore) through Pyrebase4.

nhorvath commented 3 years ago

That would be all your code, using this inside of fast api.

JuniorGunner commented 3 years ago

I've got this answer on FastAPI opened issue: https://github.com/tiangolo/fastapi/issues/2651#issuecomment-760159514 I think this is what I was looking for. Thank you.