Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

benzene-gcp

Host Benzene Python handlers on Google Cloud Functions — behind an HTTP trigger and a Pub/Sub trigger, with a Pub/Sub outbound client — the same handlers, no rewrite. Depends on benzene-core and benzene-http.

pip install benzene-gcp            # add [pubsub] for the real outbound client
from benzene.gcp import GcpFunctionsApp, http_function, pubsub_function

app = GcpFunctionsApp(http_router=router, registry=registry)

# Functions Framework entry points:
orders_http = http_function(app)         # @functions_framework.http
orders_pubsub = pubsub_function(app)     # @functions_framework.cloud_event
  • HTTP trigger — delegates to the benzene.http binding (route → topic, status mapping).
  • Pub/Sub trigger — topic from the topic message attribute; one scope per message; a failure result is raised so Pub/Sub redelivers.
  • OutboundPubSubMessageSender implements the benzene.core.MessageSender port over google-cloud-pubsub (optional extra), forwarding headers as message attributes.

Test both triggers in memory with benzene.gcp.testing (native event builders + a test host) — see the runnable examples/gcp_orders/. Mirrors .NET's Benzene.GoogleCloud.Functions.*, and contributes the benzene.gcp subpackage to the shared benzene namespace.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

benzene_gcp-0.1.0b1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

benzene_gcp-0.1.0b1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file benzene_gcp-0.1.0b1.tar.gz.

File metadata

  • Download URL: benzene_gcp-0.1.0b1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for benzene_gcp-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 52398dfc0e5482dfb0ea0675b642a1307fad7274dbfc2fddba960ed5c3129e7f
MD5 4aae7f30aaf26520946ed54af9810a9b
BLAKE2b-256 1f360c9bb44413c516f1e0989c178eda7d556922cf38962cc38d721eab146a98

See more details on using hashes here.

Provenance

The following attestation bundles were made for benzene_gcp-0.1.0b1.tar.gz:

Publisher: release.yml on daniellepelley/benzene-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file benzene_gcp-0.1.0b1-py3-none-any.whl.

File metadata

  • Download URL: benzene_gcp-0.1.0b1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for benzene_gcp-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 824762bea1c42abd3b7d30e9180289a3c12b6cc84f4d06d38170e5c7fb7609f8
MD5 d12772a99d5beb9f6cc2fa10232a6f41
BLAKE2b-256 4a061af0b8297c2cf8dd5e151146c32efa7c30025889bab7307d4e3a312360f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for benzene_gcp-0.1.0b1-py3-none-any.whl:

Publisher: release.yml on daniellepelley/benzene-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0b1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page