Skip to content

RhinoHealth/fake-gcs-server-python-wrapper

Repository files navigation

fake-gcs-server-python-wrapper

A Python test fixture that manages a fake-gcs-server subprocess, with pre-built binaries bundled in platform-specific wheels.

No runtime downloads or containers are required.

Usage

from fake_gcs_server_python_wrapper import FakeGCSServer

# As a context manager (recommended)
with FakeGCSServer() as server:
    print(server.url)  # http://127.0.0.1:<port>
    # STORAGE_EMULATOR_HOST is set automatically

# Or manually
server = FakeGCSServer(port=9023)
server.start()
# ...
server.stop()

Supported platforms

  • macOS 12+ (Intel and Apple Silicon)
  • Linux x86_64 and ARM64 (glibc-based)
  • Windows x86_64

About

Python wrapper for fake-gcs-server, with binaries bundled in the wheel

Resources

License

Stars

Watchers

Forks

Contributors

Languages