Skip to main content

Google Cloudevents library

Project description

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"

Project details


Download files

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

Source Distribution

google_events-0.14.0.tar.gz (359.5 kB view details)

Uploaded Source

Built Distribution

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

google_events-0.14.0-py3-none-any.whl (561.5 kB view details)

Uploaded Python 3

File details

Details for the file google_events-0.14.0.tar.gz.

File metadata

  • Download URL: google_events-0.14.0.tar.gz
  • Upload date:
  • Size: 359.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for google_events-0.14.0.tar.gz
Algorithm Hash digest
SHA256 85ec5d4e190d6eb305a99f8657dd5a665931fa4f12734df810c077af59ef732d
MD5 69eeb340fdb8714738909cbb99003c17
BLAKE2b-256 26e31d92e712339cec272ec454bdc525ab65ce3fb6ea1d1c442fa25d412007b4

See more details on using hashes here.

File details

Details for the file google_events-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: google_events-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 561.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for google_events-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60fad72e86536471c931f93c57d2ee36e4e0aca6047abf92c51512c68a8cd944
MD5 5839af347e8eb173c60187b074c73e3b
BLAKE2b-256 5f7b0abf9dc76bbac80f68a6429e68397e98bf235b99e65e4c1f4b0d8ab59c44

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page