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.2.1.tar.gz
(50.6 kB
view details)
Built Distribution
File details
Details for the file google-events-0.2.1.tar.gz
.
File metadata
- Download URL: google-events-0.2.1.tar.gz
- Upload date:
- Size: 50.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58ceda4af605111cf81a4311a79d435b3566db06116df84274ab7902c4a652e4 |
|
MD5 | 0b95ffc8a73dae0893d52d53296c6108 |
|
BLAKE2b-256 | 30f490b7f52b31cd9cdedeaf1793f76638a0e2281af4331ca052e8b2737b3e1d |
File details
Details for the file google_events-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: google_events-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 59.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18ce5553149e86cc0e84cb9b80c21fe3dec7eeca7a39bd4a7b5809d2a0517dcf |
|
MD5 | dc29d29ea9afa5ace41b71708ebac807 |
|
BLAKE2b-256 | 1dca0853608c1dd0e6673a1869a0c3bcd5a7f883171ebbbb3b6945fa7b935837 |