Skip to main content

A collection of first party Google Cloud Platform event objects.

Project description

Google CloudEvents - Python

PyPI version

This library provides classes of common event types used with Google services. At this moment the following types are available:

Package Python Class Description
google.events.cloud.scheduler.v1 SchedulerJobData Scheduler job data.
google.events.firebase.database.v1 ReferenceEventData The data within all Firebase Real Time Database reference events.
google.events.cloud.pubsub.v1 MessagePublishedData The event data when a message is published to a topic.
google.events.firebase.remoteconfig.v1 RemoteConfigEventData The data within all Firebase Remote Config events.
google.events.firebase.auth.v1 AuthEventData The data within all Firebase Auth events.
google.events.cloud.storage.v1 StorageObjectData An object within Google Cloud Storage.
google.events.cloud.firestore.v1 DocumentEventData The data within all Firestore document events.
google.events.firebase.analytics.v1 AnalyticsLogData The data within Firebase Analytics log events.
google.events.cloud.audit.v1 LogEntryData The data within all Cloud Audit Logs log entry events.
google.events.cloud.cloudbuild.v1 BuildEventData Build event data for Google Cloud Platform API operations.

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.pubsub.v1 import MessagePublishedData

# Parses a Dict into an event
# The Dict may be an argument in a background Cloud Function,
# or the payload of an HTTP request received by a Cloud Run service with event
# triggers.
event_data = "Some event data"
event = MessagePublishedData.from_dict(event_data)
print(event.message)

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

Uploaded Source

Built Distribution

google_events-0.2.0-py2.py3-none-any.whl (59.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file google-events-0.2.0.tar.gz.

File metadata

  • Download URL: google-events-0.2.0.tar.gz
  • Upload date:
  • Size: 50.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for google-events-0.2.0.tar.gz
Algorithm Hash digest
SHA256 91137fdf95b9ff2f3979f957ac0d388ab3549f3cce3807d1616618ea52cec2e4
MD5 fcc4937eb6709bad48ad9998cf10cfe7
BLAKE2b-256 4fe1fba78eeb22b888616c43ce40e4aff07000df684dca2b45919da549029e19

See more details on using hashes here.

File details

Details for the file google_events-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: google_events-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 59.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for google_events-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9b12a9c3ee97394182e331df3eff16be5c7a6318a9f9603108c29ac66e25478c
MD5 05afd22b5fabf2b663dc89bc465327c4
BLAKE2b-256 da84d55a34f0cd9f5fff66b3e0cd8df8b5a3e6a22c5b043d033f77cd2b2814c2

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