Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

[FR] Connect to firebase storage emulator

Offen
#693 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
1/5
Geschätzter Aufwand
Unter einer Stunde
Anfängerfreundlichkeit
45/100
Issue-Typ
Dokumentation
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
documentation

Rechercherichtung

Beginne mit der verlinkten Dokumentation zur Firebase Emulator Suite, insbesondere mit dem Abschnitt „Admin SDK Storage“, und vergleiche den dortigen Namen der Umgebungsvariablen mit dem in der Issue beschriebenen Verhalten des Python Admin SDK. Als erledigt gilt die Aufgabe, wenn die Dokumentation STORAGE_EMULATOR_HOST verwendet und klar erklärt, wie man einen emulierten Bucket erhält; die Issue fragt außerdem, wo diese Dokumentationskorrektur eingereicht werden sollte.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

api: storage help wanted type: feature request

**EDIT:**
I just discovered that it's a bug in the documentation. It is possible to connect to firebase storage emulator using the python admin sdk, but you need to set the STORAGE_EMULATOR_HOST environment variable instead of the FIREBASE_STORAGE_EMULATOR_HOST as described by the docs.
See this answer.
Should I close this and submit an issue somewhere else? In that case where do I need to open such issue?

Is your feature request related to a problem? Please describe.
I have a problem described by this question. But to summarize I am using firebase storage admin with python and I want to connect it to a firebase emulator running on localhost. I followed the docs here, added the environment variable, but now I need to get the bucket.

bucket = storage.bucket("What do I put here?")
If I don't put anything it gives an error, if I put a real bucket it uses that and I even tried localhost ("127.0.0.1:9199") as bucket name and it couldn't find it because it was searching for a real bucket.

Describe the solution you'd like
I'd like a way to get a emulated storage bucket. I think that if the environment variable is set storage.bucket() should return that.

Describe alternatives you've considered
Any other way it would be possible to use firebase storage admin with the emulator suite would be appreciated.

Additional context
As far as I know there is no solution for the problem described above. I don't know if this is a bug or if I'm just being dumb, so I would appreciate if you could point me in the right direction if this is not the right place.

Vorherrschende Sprache
Python
Sterne
1.2k
Forks
359
Ø Merge
3 T. 9 Std.
Gemergte PRs (30 T.)
3

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus firebase/firebase-admin-python

Alle Issues in firebase/firebase-admin-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.