skillfed

google-events

Google Cloudevents library

google-events v0.14.0 627.6K downloads/30d#5,681 on PyPI30
Permissive license Apache License 2.0 Active released

What it is and what it does

Google CloudEvents is a Python library that defines and provides classes for event types used across Google Cloud services. It wraps protobuf definitions from the Google CloudEvents repository, allowing developers to parse and work with event payloads in a type-safe manner. The library is designed primarily for use with Google Cloud Run services that receive event triggers, though it can be used anywhere CloudEvents need to be deserialized and handled.

The package depends on proto-plus and protobuf for its core functionality, translating protobuf message definitions into Python classes. It requires Python 3.7 or later and is distributed as a pure-Python wheel, making installation straightforward across platforms.

Use it for:

  • Parse Cloud Storage events in Cloud Run services to react to bucket or object changes.
  • Handle Pub/Sub message events received as CloudEvents in event-driven architectures.
  • Deserialize and type-check event payloads from Google Cloud event sources in serverless functions.
  • Build event routing logic that depends on structured event type definitions from Google services.
  • Integrate with Cloud Audit Logs or other Google Cloud event streams in Python applications.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides Python classes for Google CloudEvents event types, enabling parsing and handling of event payloads from Google Cloud services.

Yes. The package is actively maintained, has low install friction, carries a permissive license, and solves a real problem for developers working with Google Cloud event-driven systems. No known vulnerabilities. Install it if you are building Cloud Run services or other Python applications that consume Google CloudEvents.

Install

google-events on PyPI

pip

pip install google-events

uv

uv add google-events

poetry

poetry add google-events

Installing google-events

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained as of June 2026, with regular releases since January 2021.

License in practice

Licensed under Apache License 2.0 (permissive), allowing use in most commercial and open-source projects without significant restrictions.

Quickstart

pip install google-events

from google.events.cloud import storage

def handle_event_trigger(json_payload):
    event = storage.StorageObjectData.from_json(json_payload)
    print(f"{event.bucket}/{event.name} had event")
    return "OK"

Requires Python 3.7 or later.

Verify before relying

  • Whether the library covers all Google Cloud event types or only a subset of available services.
  • Performance characteristics when parsing large or deeply nested event payloads.
  • Backward compatibility guarantees across minor version updates.

Package facts

License Apache License 2.0 (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 2 — proto-plus, protobuf
Maintenance actively maintained — 617 days since the last release
Last repo commit
First released
Downloads 627,583/month — #5,681 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: google_events-0.14.0-py3-none-any.whl

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet

Tags

google cloud events pythoncloudevents event typesgoogle cloud event parsingevent payload handlingcloud run event triggersgoogle events librarycloudevents protobuf classes
google-cloudevent-handlingprotobuf

More Internet packages