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.
  • Outbound — PubSubMessageSender 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.

Metadata

Release files for benzene-gcp 0.1.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for benzene-gcp 0.1.0b2
File Size Uploaded Provenance Actions
benzene_gcp-0.1.0b2.tar.gz 7.5 kB With provenance Details for benzene_gcp-0.1.0b2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for benzene-gcp 0.1.0b2
File Interpreter ABI Platform Actions
benzene_gcp-0.1.0b2-py3-none-any.whl Python 3 none any Details for benzene_gcp-0.1.0b2-py3-none-any.whl

Total release size: 17.1 kB

Release files / benzene_gcp-0.1.0b2.tar.gz

Download URL benzene_gcp-0.1.0b2.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
43ee17e3364ad7bd88e1c05417d6bc4b21751efae996928849a51e37ce567033
BLAKE2b-256 checksum
How to use checksums
ad20f6680bfc053e4b261e127fda9af04d604362ceabfafeada51ad8b3885863
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / benzene_gcp-0.1.0b2-py3-none-any.whl

Download URL benzene_gcp-0.1.0b2-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ea7a84da2675b8be51af655a5d8953ab16332267c8058a4ebf16433f1f5fc3f
BLAKE2b-256 checksum
How to use checksums
d09defe35d0ea8c6dee29f5d21b1e92b820a97249f053340fb6e414083c1aeab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Security for benzene-gcp 0.1.0b2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for benzene_gcp-0.1.0b2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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