aylien-message-puller-0.0.1
توضیحات
Tool for pulling messages from pubsub subscriptions
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aylien-message-puller-0.0.1 |
| نام | aylien-message-puller |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | AYLIEN Engineering |
| ایمیل نویسنده | eng-team@aylien.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/aylien-message-puller/ |
| مجوز | - |
aylien-message-puller
===============
Google Cloud provides emulators for testing PubSub. Here you will find a tool that will pull messages for subscriptions taking project ID, subscription ID and the maximum number of messages as input.
The retreived messages can be acknowledged using the flag 'ack' (which is turned off by default).
Install using pip (Python 3):
```
pip install aylien-message-puller
```
### Example
To pull messages from a subscription, you will need to provide the project-id, subscription-id, and the maximum number of messages
```
import aylien_message_puller
aylien_message_puller.pull_pubsub("project-id", "subscription-id", 10)
```
The default mechanisn does not the received messages are not acknowledged. However, if you would like to acknowledge them, set the flag as true.
```
import aylien_message_puller
aylien_message_puller.pull_pubsub("project-id", "subscription-id", 10, true)
```Change Log
==========
0.0.1 (07/11/2022)
------------------
First release
نیازمندی
| مقدار | نام |
|---|---|
| ==1.33.2 | google-api-core |
| ==1.1.0 | google-cloud-pubsub |
| ==1.1.0 | google-cloud-core |
| ==4.0.2 | lz4 |
نحوه نصب
نصب پکیج whl aylien-message-puller-0.0.1:
pip install aylien-message-puller-0.0.1.whl
نصب پکیج tar.gz aylien-message-puller-0.0.1:
pip install aylien-message-puller-0.0.1.tar.gz