【问题标题】:Python firebase storage emulatorPython firebase 存储模拟器
【发布时间】:2021-09-06 07:30:42
【问题描述】:

您好,我想知道如何连接到我的 Firebase 存储模拟器,这就是我连接到 Firestore 的方式。我如何使用存储来做到这一点

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)

Firebase 存储的等价物是什么?

【问题讨论】:

    标签: python firebase-storage firebase-tools


    【解决方案1】:

    查看仿真文档,Python Admin SDK 目前似乎不支持存储仿真器,但它被列为“未来”,表明它正在开发中,但没有当前的发布日期。

    来源: https://firebase.google.com/docs/emulator-suite/install_and_configure#admin_sdk_availability

    【讨论】:

    猜你喜欢
    • 2021-11-03
    • 2021-09-30
    • 2021-09-04
    • 1970-01-01
    • 2022-10-07
    • 1970-01-01
    • 2021-08-30
    • 1970-01-01
    • 2021-01-25
    相关资源
    最近更新 更多