Google CloudEvents - Python
This library provides classes of common event types used with Google services, as defined in the Google Cloudevents repository.
Installation and Usage
Note: This library requires Python 3.7+.
To install this package, run
pip install --upgrade google-events
To use an event class, see the snippet below:
from google.events.cloud import storage
# Parses a json string containing an event payload
# The json payload may be from an HTTP request received by a Cloud Run
# service with event triggers.
def handle_event_trigger(json_payload):
event = storage.StorageObjectData.from_json(json_payload)
print(f"{event.bucket}/{event.name} had event")
return "OK"
Metadata
Release files for google-events 0.14.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| google_events-0.14.0.tar.gz | 359.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| google_events-0.14.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 921.0 kB
Release files / google_events-0.14.0.tar.gz
| Download URL | google_events-0.14.0.tar.gz |
|---|---|
| Size | 359.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85ec5d4e190d6eb305a99f8657dd5a665931fa4f12734df810c077af59ef732d
|
|
BLAKE2b-256 checksum How to use checksums |
26e31d92e712339cec272ec454bdc525ab65ce3fb6ea1d1c442fa25d412007b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / google_events-0.14.0-py3-none-any.whl
| Download URL | google_events-0.14.0-py3-none-any.whl |
|---|---|
| Size | 561.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60fad72e86536471c931f93c57d2ee36e4e0aca6047abf92c51512c68a8cd944
|
|
BLAKE2b-256 checksum How to use checksums |
5f7b0abf9dc76bbac80f68a6429e68397e98bf235b99e65e4c1f4b0d8ab59c44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|