Skip to main content

Google CloudEvents - Python

PyPI version

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)

Source distribution for google-events 0.14.0
File Size Uploaded
google_events-0.14.0.tar.gz 359.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for google-events 0.14.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.14.0 This release

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release 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