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.13.0.tar.gz (359.2 kB view details)

Uploaded Source

Built Distribution

google_events-0.13.0-py3-none-any.whl (561.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for google_events-0.13.0.tar.gz
Algorithm Hash digest
SHA256 bd267e39865f7ca1a120993dc00c65dcb2770ee13ae95a34f76d816957e297d8
MD5 58e6242b03068111817953027b835a52
BLAKE2b-256 773757993f165349188d7f1dbeab3f5fceb035a74586221dd00f4c93f373df04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_events-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a17e9a54aa27b06fdca3defdc81bd3e07e685734e90b6dd9c297f0898004b74c
MD5 4514f2a5cda510a0dd90c472fd8f322f
BLAKE2b-256 bf3a812ad95928236bfe2f654df9f2f9cf02d5122029a4d04dbfb1dc365b2cb4

See more details on using hashes here.

Supported by

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