Python-firebase 与 firebase-storage 一起工作

标签 python python-3.x firebase firebase-realtime-database firebase-storage

我在这里阅读了关于 python-firebase 的文档

http://ozgur.github.io/python-firebase/

但我没有看到任何关于 firebase-storage 的信息。

你们知道这个库可以使用存储还是只使用数据库。

或者您知道更好的 Firebase-Storage 包装器。

最佳答案

使用 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!')

关于Python-firebase 与 firebase-storage 一起工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42678347/

相关文章:

python - 传递闭包 python 元组

python - python中os.environ的功能

python-3.x - Python 属性错误 : 'module' object has no attribute 'atoi'

java - 为什么我不能正确检索数据?

python - 按出现次数分组

python - Pandas : how to merge 2 dataframes on key1. str.endswith(key2)

python - 如何为 Python 3 安装发行版

python - pymysql 事务保存一个插入查询但忽略两个更新查询而不引发错误

ios - 如何解决flutter中的iOS部署目标问题

firebase - 缓慢且不可靠的 Firebase Cloud Functions