Giter VIP home page Giter VIP logo

google-cloudevents-python's Introduction

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.cloud.pubsub.v1 MessagePublishedData The event data when a message is published to a topic.
google.events.firebase.database.v1 ReferenceEventData The data within all Firebase Real Time Database reference events.
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 MessagePublishedEvent

# 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)

google-cloudevents-python's People

Contributors

busunkim96 avatar grant avatar justinbeckwith avatar release-please[bot] avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.