5

Hi I was wondering how to connect to my firebase storage emulator, this is how I connect to Firestore. How do I do it with storage

Firestore Example:

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)

What is the equivalent for firebase storage?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
GILO
  • 2,444
  • 21
  • 47

1 Answers1

8

Looking at the emulation documentation, it seems that the Python Admin SDK does not currently support the Storage emulator but it is listed as 'future' indicating it is in development but does not have a current release date.

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

DIGI Byte
  • 4,225
  • 1
  • 12
  • 20
  • The `firebase-admin-python` github repo has an issue identifying this need, but its been crickets since last summer https://github.com/firebase/firebase-admin-python/issues/570 – Alan David Garcia Mar 01 '22 at 23:14