How is this project useful #5
-
I am currently exploring firebase sdk in python Firebase has an official sdk for python How is this project useful compared to the official sdk? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
firebase-admin-python : If you use Firebase Admin SDK then you can have admin access to things without worrying about restrictions and rules on your database. firebase-rest-api: If you use this library, then you need to authenticate each time, you try access your data (meaning you can set rules and permissions for your database, storage etc. to restrict it from being accessed via another user). Admin access is also available in this library, but it is optional (for details, click here). |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation. |
Beta Was this translation helpful? Give feedback.
-
Does this mean it is basically a full alternative to Pyrebase4/Pirebase except with added Firestore ability and optional service account? I've been looking for something which I think this might be it! Amazing! My current understanding from perspective of serverside sessions flask app: Current enthusiasm from firebase-admin is absent regarding serverside password auth firebase/firebase-admin-python/issues/641 and hence if you want to use that admin SDK with firestore you still need to use Pyrebase to authenticate the session unless you want to go down the route of client side FirebaseUI How-to-use-Firebase-Auth-in-Flask/ One question, when you say authenticate each time above, do you mean pass along token in the same manner as Pyrebase?
I couldn't see anything similar in the docs |
Beta Was this translation helpful? Give feedback.
firebase-admin-python : If you use Firebase Admin SDK then you can have admin access to things without worrying about restrictions and rules on your database.
firebase-rest-api: If you use this library, then you need to authenticate each time, you try access your data (meaning you can set rules and permissions for your database, storage etc. to restrict it from being accessed via another user). Admin access is also available in this library, but it is optional (for details, click here).
Note: About setting rules and permission database, storage.