GIL*_*ILO 5 python firebase-tools firebase-storage
您好,我想知道如何连接到我的 firebase 存储模拟器,这就是我连接到 Firestore 的方式。我如何使用存储来做到这一点
火库示例:
if emulator:
os.environ["FIRESTORE_EMULATOR_HOST"] = "0.0.0.0:8080"
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "myCredentials.json"
# Retrieve the application credentials
cred = credentials.ApplicationDefault()
options = {
"storageBucket": "my-storage-bucket-name.appspot.com"
}
# Initialise the app
firebase_app = firebase_admin.initialize_app(cred, options)
Run Code Online (Sandbox Code Playgroud)
firebase 存储的等效项是什么?
小智 10
查看模拟文档,Python Admin SDK 目前似乎不支持存储模拟器,但它被列为“未来”,表明它正在开发中,但没有当前的发布日期。
来源: https ://firebase.google.com/docs/emulator-suite/install_and_configure#admin_sdk_availability
| 归档时间: |
|
| 查看次数: |
987 次 |
| 最近记录: |