[英]Python-firebase work with firebase-storage
I am read documentation about python-firebase here我在这里阅读了有关 python-firebase 的文档
http://ozgur.github.io/python-firebase/ http://ozgur.github.io/python-firebase/
But I didn't see anything about firebase-storage.但是我没有看到有关火力存储的任何信息。
Do you guys know can this library work with storage or only with database.你们知道这个库可以与存储一起使用还是只能与数据库一起使用。
Or do you know better wrapper for Firebase-Storage.或者你知道更好的 Firebase-Storage 包装器。
Use the google-cloud
python client:使用
google-cloud
python 客户端:
from google.cloud import storage
client = storage.Client()
bucket = client.get_bucket('<your-bucket-name>')
blob = bucket.blob('my-test-file.txt')
blob.upload_from_string('this is test content!')
You can use a simple python wrapper for the Firebase API with pyrebase
by thisbeijim.您可以通过 thisbeijim 使用带有
pyrebase
的 Firebase API 的简单 python 包装器。 You can look at firebase storage;你可以看看firebase storage; by the way, when you use the
pyrebase
wrapper, you can use firebase services like: authentic, database and storage.顺便说一下,当您使用
pyrebase
包装器时,您可以使用pyrebase
服务,例如:真实、数据库和存储。
https://github.com/thisbejim/Pyrebase https://github.com/thisbejim/Pyrebase
If what you need is get the imageURL and safe in a database what you have to do is make a firebase function (triguer for firebaseDatabase).如果您需要的是在数据库中获取 imageURL 和安全,那么您需要做的是创建一个 firebase 函数(firebaseDatabase 的触发器)。 Where when you upload a image it send the url to the database.
当您上传图像时,它将 url 发送到数据库。
for More information: Firebase Function更多信息: Firebase 函数
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.