Skip to main content
 首页 » 编程设计

Python-firebase 与 firebase-storage 一起工作

2025年02月15日10youxin

我在这里阅读了关于 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!')