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
0
votes
0 answers

Firebase Mutilple Item Upload not working

I need help to upload mutiple images in firebase for files in local_image: cloud_img = "images/example" + str(random.randint(1, 18596)) storage.child(cloud_img).put(files, user['idToken']) imgurl =…
0
votes
2 answers

Pyrebase4 storage No value for argument 'filename'

I have been struggling with installing pyrebase on my second PC, which has the same python version 3.8.2 as my main PC, my main PC has this pyrebase script working properly from pyrebase import pyrebase import os import time project_root =…
fenchai
  • 518
  • 1
  • 7
  • 21
0
votes
2 answers

Get Pyrebase HTTPError information

Using the pyrebase wrapper for Firebase Authentication, when attempting to create a new user that is already a user pyrebase wraps the google API response in an HTTPError message. But when I try to capture this exception it doesn't recognize…
Justin B
  • 51
  • 5
0
votes
4 answers

Python - How can I replace multiple output lines?

I have three outputs and I want to replace it in every 3 seconds. With this code it's printing only the c: import sys import time a = 1 b = 5 c =10 while True: sys.stdout.write("\r" + str(a)) sys.stdout.write("\r" + str(b)) …
0
votes
1 answer

Access Firebase Realtime Database using Pyrebase

I have recently started with pyrebase and I am having trouble in storing data depending on user and receiving it. After completing the authentication part I create a user ID as user['idToken'] And then pushed data by using archer = {"name":…
0
votes
1 answer

Django fetch firebase User UID

I'm using Pyrebase to fetch data from firebase in Django and so far it seems to be able to do everything but for some reason, I can't fetch the User UID from the authentication page in firebase. This is necessary for me to be able to do as all my…
user
  • 345
  • 2
  • 8
  • 32
0
votes
1 answer

How does .indexOn works with users and unique keys?

I am confused with index rules in firebase. I have this database and I wanted to extract distance_traveled in battery_and_cables. The thing is, 1 is something like a userID set by the user itself so that will vary. I used this code in pyrebase to…
0
votes
1 answer

How to use pyrebase order_by_key correctly?

I have a function which I'm trying to make return a list of ordered keys (which are in date format). I have data = database.child('users').child(num).child('details').get().val() and then return render(request, "page2.html",…
0
votes
2 answers

Pyrebase uploaded image not loading firebase storage

I'm not able to make this work, I want to upload a picture to firebase with pyrebase and the file(picture) goes through but it never loads on firebase/storage (see picture attached) This is the code: if request.method == 'POST': upload =…
0
votes
1 answer

How to count firebase database in python using pyrebase?

How can we do count() for firebase database in python ? as for example .. count = db.child("users").get().count()
0
votes
1 answer

send an image to google fire-base using python

i want to store image in google firebase import pyrebase config = { "apiKey": "apiKey", "authDomain": "projectId.firebaseapp.com", "databaseURL": "https://databaseName.firebaseio.com", "storageBucket": "projectId.appspot.com" } firebase =…
0
votes
0 answers

ImproperlyConfigured error when using pyrebase with Django

I tried to import pyrebase in my views.py, but I've got an error raisen: Exception in thread django-main-thread: Traceback (most recent call last): File "C:\Users\USER\Documents\python projects\yerekshe\lib\site-packages\django\urls\resolvers.py",…
0
votes
1 answer

How can I get a key from the value in Firebase?

My Firebase structure is as below. I'm using python to use firebase, and also I use Pyrebase. I want to get a key, which looks like '288xxxxxx' from the value(busStopName). Can I get the answer in Pyrebase? Thank you in advance...
0
votes
0 answers

Is there a method to stream firebase data in GUI?

I'm trying to stream data from firebase in my GUI ( Tkinter ) app. I tried to stream the data in console and it goes very well, but i don't understand how can I stream it into the gui app. Near by is what I've done import pyrebase from firebasedata…
0
votes
2 answers

Pyrebase cannot find an email

I was following the Pyrebase tutorial and I got it up and running for one user account. I added another user account to the code and now I'm getting an error saying email address isn't found. The user account has been added to the Firebase User, and…
killsburydouboy
  • 309
  • 1
  • 3
  • 14