google-events-0.9.0


توضیحات

Google Cloudevents library
ویژگی مقدار
سیستم عامل OS Independent
نام فایل google-events-0.9.0
نام google-events
نسخه کتابخانه 0.9.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Google LLC
ایمیل نویسنده googleapis-packages@google.com
آدرس صفحه اصلی https://github.com/googleapis/google-cloudevents-python/
آدرس اینترنتی https://pypi.org/project/google-events/
مجوز Apache License 2.0
# Google CloudEvents - Python [![PyPI version](https://badge.fury.io/py/google-events.svg)](https://badge.fury.io/py/google-events) This library provides classes of common event types used with Google services, as defined in the [Google Cloudevents repository](https://github.com/googleapis/google-cloudevents). ## Installation and Usage **Note**: This library requires Python 3.7+. To install this package, run ``` sh pip install --upgrade google-events ``` To use an event class, see the snippet below: ``` python from google.events.cloud import storage # Parses a json string containing an event payload # The json payload may be from an HTTP request received by a Cloud Run # service with event triggers. def handle_event_trigger(json_payload): event = storage.StorageObjectData.from_json(json_payload) print(f"{event.bucket}/{event.name} had event") return "OK" ```


نیازمندی

مقدار نام
- proto-plus>=1.22.0
- protobuf>=4.21.5


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl google-events-0.9.0:

    pip install google-events-0.9.0.whl


نصب پکیج tar.gz google-events-0.9.0:

    pip install google-events-0.9.0.tar.gz