Python firebase 存储模拟器

Python firebase storage emulator

您好,我想知道如何连接到我的 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 Admin SDK 目前不支持存储模拟器,但它被列为 'future' 表明它正在开发中但没有当前的发布日期。

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