Questions tagged [pyrebase]

Questions about Pyrebase. Pyrebase is a Python 3 wrapper for the Firebase API.

Pyrebase is a Python 3 wrapper for the Firebase API. It implements most of the functionalities of the API (Authentication, Database management and Storage)

Read more about Pyrebase here Read more about Firebase API here

183 questions
2
votes
2 answers

Giving a computer sole access to the Realtime Database through Rules (Pyrebase)

I'm using Python on my PC to update the Realtime Database, and that Python script should be the only thing that has access to the Realtime Database, for writing at the very least. Is there a unique 'token' for the database that I can add to the…
2
votes
1 answer

Pyrebase sending profile pic in json

I am creating user accounts using prebase auth.create_user_with_email_and_password. Then I am storing the users' data in firebase realtime database. db.child("users").push("data") where data= {"name": name, "email" : email, "password": password,…
doc
  • 828
  • 2
  • 6
  • 18
2
votes
1 answer

Override the IsAuthenticated permission class with one that checks firebase

I am using firebase(pyrebase library) for my authentication with a django backend and a react frontend.For this to work I had to override the DRF auth class TokenAuthentication with my FirebaseAuthentication. But I still get 401 unauthorised when I…
siderra
  • 131
  • 1
  • 11
2
votes
1 answer

How do I know whether the registered email is verified or not in firebase?

I am making an app in the flask using firebase authentication with the pyrebase library. following is the code I use for authentication... @app.route('/register', methods=['GET', 'POST']) def register_page(): form = RegisterForm() if…
vandit vasa
  • 413
  • 4
  • 20
2
votes
0 answers

Slow DB access (FastAPI + Firebase)

I am trying to build a backend service (FastAPI) which is connected to Firebase using Pyrebase Helper Library (as suggested by Firebase documentation). The Firebase Realtime Database has a structure of: "myproject_db" : { "movies": …
PoolHallJunkie
  • 1,345
  • 14
  • 33
2
votes
2 answers

List all users from Firebase Authentication

I am currently using the Pyrebase wrapper to get information (such as their email and created date) of all users. I tried looking through the documentation and cross reference it to Pyrebase documentation however i don't seem to get what i'm looking…
2
votes
1 answer

How to fix pkg_resources.DistributionNotFound: The 'gcloud' distribution was not found and is required by the application

I am trying to connect the firebase authentication.I installed required modules but the above error I couldn't solve. I tried to create a hooks directry for gcloud but still not solved the problem. import pyrebase config = { "apiKey":…
Samasha
  • 369
  • 1
  • 5
  • 16
2
votes
1 answer

How to know whether user is logged in or not in Pyrebase and Flask?

app = Flask(__name__) firebase = pyrebase.initialize_app(config) auth = firebase.auth() db = firebase.database() @app.route('/login', methods=["POST", "GET"]) def login(): message = "" if request.method == "POST": …
2
votes
1 answer

pyrebase.storage() - Invalid HTTP method/URL pair

I have a script where I tried to upload an image to the storage of firebse with pyrebase for which I use thestorage function but it does not work and it throws the following error Traceback (most recent call last): File…
2
votes
2 answers

How to get data which have a specific child key using Pyrebase

I'm using Pyrebase to access my Firebase database. My database is currently structured like so: - users - 12345 name: "Kevin" company: "Nike" Where 12345 is the user's id, and the company is the company that the user belongs to.…
user11073162
1
vote
2 answers

Firebase realtime database permission error even though rules playground simulation succeeds

My database has a users child with fields email and name, with the key being the users uid. Here are the database rules: { "rules": { "users": { "$uid": { "email": { ".read": "auth.uid == $uid", …
1
vote
1 answer

pyrebase not working ? simple code but giving error?

import pyrebase config = {'apiKey': "AIzaSyCIkjXwfFCXuWavGkiy39MEx8aG9QsRpxE", 'authDomain': "sparkwebdevsujit.firebaseapp.com", 'projectId': "sparkwebdevsujit", 'storageBucket': "sparkwebdevsujit.appspot.com", 'messagingSenderId':…
1
vote
1 answer

Firestore integration with Django

I have a Firebase Firestore database connected to a Flutter mobile application. I want to build a web application to manage the users' data and handle new users. I have decided to use Django for my web application, but I have two questions if anyone…
1
vote
1 answer

Upload of file in firebase using pyrebase return None

I'm using firebase to upload images using python and pyrebase, the post request is: @router.post('/', response_model=schemas.Product) def add_product( file: UploadFile = File(), db: Session = Depends(get_db) …
1
vote
1 answer

Firebase & Pyrebase can't write to database with Authentication

I am farely new to Pyrebase and Firebase and I was wondering why this code isn't working. I want to write to the realtime database, for that the rules are { "rules": { "userdata": { "$uid": { ".read": "$uid === auth.uid", …
1
2
3
12 13