我需要访问Firestore数据库。我正在做一个项目,需要分析它的数据,但我只有阅读的权利。因此,我无法生成SDK密钥。
我尝试使用pyrebase库,但它无法工作:
import pyrebase
firebaseConfig = {
"I put here the config with apiKIey, authDomain etc..."}
firebase = pyrebase.initialize_app(firebaseConfig)
#Get a reference to the database service
db = firebase.database
File "login_main.py", line 7, in <module>
import pyrebase
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\pyrebase\__init__.py", line 1, in <module>
from .pyrebase import initialize_app
File "C:\Users\user\AppData\Local\P
我是Firebase的新手,我正在使用Pyrebase库。我能够成功地进行身份验证,并且能够获得数据。问题是,当我打印数据时,它打印的是引用对象,而不是实际数据本身。 我已经在网上搜索了一段时间,我所看到的一切都表明我的代码是正确的。我尝试过.each方法,但它不起作用。 results = db.child("test").get()
for i in results.each():
print(i) 我所期望的是来自我的json的要显示的数据。发生的事情是,对象引用被传递了,但这对我没有任何好处。 结果是什么: <pyrebase.pyrebase.Pyre
我目前正在使用Pyrebase包装器来获取所有用户的信息(例如他们的电子邮件和创建日期)。我试着浏览文档并将其交叉引用到Pyrebase文档,但是我似乎没有得到我想要的东西。目前我已经尝试过了: import pyrebase
config={all required information, including path to service account .json file}
firebase=pyrebase.initialize_app(config)
db=firebase.database()
auth=firebase.auth()
extract_user = db
我正在尝试使用python firebase.google.com,并将我的项目连接到我的python文件,我已经安装了pyrebase4,根据文档,我什么都做了。
我面临过很多问题,比如
在python文件中导入pyrebase时,我得到了以下错误:
第二,当试图安装pyrebase时,我得到的错误如下
Installation error with pycryptodome
(and a lots of line with after this )
github的人提供指示
pip install pyrebase4
pip install pyrebase-t
pip instal
File "D:\Documents\my_project\firebase_login.py", line 1, in <module>
from pyrebase import pyrebase
File "D:\Documents\Python_projects\Test_kivy\venv\lib\site-packages\pyrebase\__init__.py", line 1, in <module>
from .pyrebase import initialize_app
File