[FR] Connect to firebase storage emulator
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 45/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- documentation
Direzione di ricerca
Inizia dalla documentazione collegata di Firebase Emulator Suite, in particolare dalla sezione Admin SDK Storage, e confronta il nome della variabile d’ambiente con il comportamento di Python Admin SDK descritto nell’issue. Il lavoro è completato quando la documentazione usa STORAGE_EMULATOR_HOST e spiega chiaramente come ottenere un bucket emulato; l’issue chiede anche dove dovrebbe essere presentata questa correzione della documentazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
**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.
- Lingua principale
- Python
- Stelle
- 1.2k
- Fork
- 359
- Merge medio
- 5g 6m
- PR unite (30g)
- 2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di firebase/firebase-admin-python
-
api: remoteconfig
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
firebase/firebase-admin-python#957 · 1 commento ·
-
api: database type: feature request
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
firebase/firebase-admin-python#978 · 1 commento ·
-
[FR] Support VERIFY_AND_CHANGE_EMAIL in generate_email_action_link (parity with firebase-admin-node) Apertaapi: auth
firebase/firebase-admin-python#949 · 2 commenti · 1 reazione · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 43/100
firebase/firebase-admin-python#945 · 1 commento · 1 reazione ·
Tutte le issue di firebase/firebase-admin-python
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
learningequality/ricecooker#747 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
run-llama/llama_index#23199 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
KhronosGroup/glTF-Blender-IO#2769 ·