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
1
vote
1 answer

Use the Pyrebase to create the anonymous user and connect the Firebase and access databases

I have a many data(eg: battery status) in the client pc (about 10 pc) want to monitor and i plan to write the application to do this and upload the monitor data to the Firebase (database of main account). Then use the dashboard on the Firebase to…
wasicat
  • 55
  • 4
1
vote
1 answer

Flask - Firebase Storage - Image upload

Im trying to allow users to upload images to my firebase storage database this way: import pyrebase from flask import * app = Flask(__name__) config = { #Hidden } firebase = pyrebase.initialize_app(config) storage = firebase.storage() auth =…
Ronnie
  • 53
  • 1
  • 4
1
vote
1 answer

How to Update Value In Firebase using Python

So, I was trying to update a certain node of my firebase realtime database, but I not aware of the steps I need to follow to accomplish the task. here is my database: {%for k,v in dataDb.items():%} …
1
vote
0 answers

how to upload a picture using Flask, Pyrebase & Firebase - my process doesn't work

I am creating a short business directory web app with Flask & Firebase; I have managed to store the data collected but I also wanted the user to be able to upload their business photo; with what I have, when I store the photo with firebase.storage()…
1
vote
0 answers

How do I check authentication across all views in Django using Pyrebase?

Okay so, ordinary Django allows you to simply: if request.user.is_authenticated: I want to be able to do the same in Pyrebase. Have the views sort of already know which user has logged in based on the current session without having to sign the user…
Kai
  • 45
  • 6
1
vote
2 answers

Uploading a JSON file with Pyrebase to Firebase Storage from Google App Engine

I have a pretty simple Flask web app running in GAE that downloads a JSON file from Firebase Storage and replaces it with the updated one if necessary. Everything works ok but GAE throws an IOError exception whenever I try to create the a new file.…
1
vote
2 answers

Firebase error handling for account creation and login - Pyrebase

I'm trying to handle for errors when users are signing up or logging in to my app. The first error I'm trying to handle for is when a user tries to create an account with an email that already exists in the database. I get the following HTTPError: …
1
vote
0 answers

Connecting users to cloud firestore

I'm trying to sign users in to my cloud firestore database using pyrebase but I'm getting an error message ```AttributeError: 'Database' object has no attribute 'collection'. Does pyrebase work with firestore or just the real time database? I found…
Callum
  • 57
  • 14
1
vote
1 answer

How do I upload a file to firebase using raspberypi 3b+

I am a beginer with raspberrypi and I am currently working on it and want to upload files to firebase. I have tried using pyrebase to upload data to firebase . The code I have used is import pyrebase config = { "apiKey":…
1
vote
0 answers

How to use Firebase Realtime Database stream using Pyrebase?

I have installed pyrebase in an online python server which is pythonanywhere and I'm trying to use the stream to check the changed values at child node when I get a request from HTTP client. Here's the code: from flask import Flask from flask import…
lalitahuja
  • 105
  • 1
  • 4
  • 13
1
vote
0 answers

Remain logged in even if user closes tab and reopens it (not browser close) - using Django and Pyrebase

I was wondering if there is a way to let the user remain logged in without having to sign in again if a user decides to close current tab and reopen it again. I am using Django and Python and here is the code I am using for signing in: def…
Ella
  • 43
  • 6
1
vote
2 answers

How can get values from dictionaries of array in python?

I have array which contain some firebase datas. Inside of that array I have dictionaries. Here my array: [{'name': 'mehmet Tilsed'}, {'name': 'mahmut Tilsed'}, {'name': 'mre Tilsed'}, {'name': 'Joe Tilsed'}, {'name': 'Joe Tilsed'}, {'name': 'Joe…
1
vote
0 answers

Getting Error with "pip install pyrebase"

ERROR: Command errored out with exit status 1: command: 'c:\users\sasa_\appdata\local\programs\python\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] =…
Haru Tsuki
  • 11
  • 1
1
vote
1 answer

List all the files of firebase storage by pyrebase?

I would like to get the list of firebase storage by pyrebase(Python) how to list every element of storage files in firebase Above link explain about it. But when I try to use this code, Python show this error message. files =…
Yonghwan Shin
  • 89
  • 2
  • 6
1
vote
1 answer

How to push multiple new object on firebase (python)

I want to push data from a json to firebase without generating a new key for each object. Ideally I would like to define the name of the key. Here is my code : import pyrebase import json config = {my firebase config} firebase =…
user9406886