Registry /
gcp / gcloud-storage-emulator
Install & Compatibility
Where this runs
tested against v0.5.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 53.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 5.1s · import 0.000s · 54MB
57MB installed
● package 57MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Emulator
✓ import gcloud_storage_emulator
✗ from gcloud_storage_emulator import Emulator
Start the emulator, set environment variable, and use google-cloud-storage client.
from gcloud_storage_emulator import Emulator
import os
# Start the emulator on port 9023
emu = Emulator(port=9023)
started = emu.start()
# Point the client to the emulator
os.environ['STORAGE_EMULATOR_HOST'] = 'http://localhost:9023'
# Use google-cloud-storage client as usual
from google.cloud import storage
client = storage.Client()
# List buckets (will be empty)
buckets = list(client.list_buckets())
print(buckets)
emu.stop()
gcloud-storage-emulator --version
Upgrade
Version history
0.5.0latest on PyPI · released Sep 29, 2021
Audit
Dependencies
google-cloud-storagerequiredThe emulator mimics the google-cloud-storage client; your code imports from google.cloud.storage.