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.httpbinding (route → topic, status mapping). - Pub/Sub trigger — topic from the
topicmessage attribute; one scope per message; a failure result is raised so Pub/Sub redelivers. - Outbound —
PubSubMessageSenderimplements thebenzene.core.MessageSenderport overgoogle-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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52398dfc0e5482dfb0ea0675b642a1307fad7274dbfc2fddba960ed5c3129e7f
|
|
| MD5 |
4aae7f30aaf26520946ed54af9810a9b
|
|
| BLAKE2b-256 |
1f360c9bb44413c516f1e0989c178eda7d556922cf38962cc38d721eab146a98
|
Provenance
The following attestation bundles were made for benzene_gcp-0.1.0b1.tar.gz:
Publisher:
release.yml on daniellepelley/benzene-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
benzene_gcp-0.1.0b1.tar.gz -
Subject digest:
52398dfc0e5482dfb0ea0675b642a1307fad7274dbfc2fddba960ed5c3129e7f - Sigstore transparency entry: 2467247407
- Sigstore integration time:
-
Permalink:
daniellepelley/benzene-python@7f3c0d2abeeb3782a82a8e2621ee8b431bf02ca8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/daniellepelley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7f3c0d2abeeb3782a82a8e2621ee8b431bf02ca8 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
824762bea1c42abd3b7d30e9180289a3c12b6cc84f4d06d38170e5c7fb7609f8
|
|
| MD5 |
d12772a99d5beb9f6cc2fa10232a6f41
|
|
| BLAKE2b-256 |
4a061af0b8297c2cf8dd5e151146c32efa7c30025889bab7307d4e3a312360f6
|
Provenance
The following attestation bundles were made for benzene_gcp-0.1.0b1-py3-none-any.whl:
Publisher:
release.yml on daniellepelley/benzene-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
benzene_gcp-0.1.0b1-py3-none-any.whl -
Subject digest:
824762bea1c42abd3b7d30e9180289a3c12b6cc84f4d06d38170e5c7fb7609f8 - Sigstore transparency entry: 2467205719
- Sigstore integration time:
-
Permalink:
daniellepelley/benzene-python@7f3c0d2abeeb3782a82a8e2621ee8b431bf02ca8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/daniellepelley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7f3c0d2abeeb3782a82a8e2621ee8b431bf02ca8 -
Trigger Event:
workflow_dispatch
-
Statement type: