A collection of first party Google Cloud Platform event objects.
Project description
Google CloudEvents - Python
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
Release history Release notifications | RSS feed
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.1.3.tar.gz
(50.5 kB
view details)
Built Distribution
File details
Details for the file google-events-0.1.3.tar.gz
.
File metadata
- Download URL: google-events-0.1.3.tar.gz
- Upload date:
- Size: 50.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba8cf8d618c3d98aaf8a0acb5a81d395015f9736094fe4d1631abd0b54d29871 |
|
MD5 | cafccebbf9f7140378ade97d1342a72e |
|
BLAKE2b-256 | a3531857a19f6fbe1a205a29c5ee4ce945076bc1281f05cf0a38c296e35d478a |
File details
Details for the file google_events-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: google_events-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 59.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2ad1435884bc9a82a937d1b029570ce6d39cba970c9dda9ba09156562b37d6b |
|
MD5 | 741c93e6e4c5aa0e62974ae3e5c32304 |
|
BLAKE2b-256 | def5952992012c6a70c39ebd169e4f1c0327100dc720551854590965690d1f70 |