Welcome to Mersal GCP Pub/Sub’s documentation!

mersal.gcp_pubsub is the Google Cloud Pub/Sub implementation for Mersal. It allows using GCP Pub/Sub as a transport that also supports Mersal pub/sub.

Quickstart

uv add mersal_gcp_pubsub
from mersal.core.app import Mersal
from mersal.gcp_pubsub.plugin import GCPPubSubPluginConfig

gcp_pubsub_plugin_config = GCPPubSubPluginConfig(
    project_id="my-gcp-project",
    input_queue_name="my-app",
)

app = Mersal(
    "my-app",
    activator,
    plugins=[gcp_pubsub_plugin_config.plugin()],
)

await app.start()

See usage for more info.

Indices and tables