Tool for pulling messages from pubsub subscriptions
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aylien_message_puller-0.0.1.tar.gz.
File metadata
- Download URL: aylien_message_puller-0.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1cd639a040a37879eb80e3216b6d4ca3bb4a85fbdb3d89e90247bcbca263438
|
|
| MD5 |
c5c657957ac9a746f9aca0957d438c3e
|
|
| BLAKE2b-256 |
8e3b7f34493296d043e5c4784a0d73cf35af5e91e3319521bc5a7f1ad4d6eebc
|
File details
Details for the file aylien_message_puller-0.0.1-py3-none-any.whl.
File metadata
- Download URL: aylien_message_puller-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a411a719eaa12b0e12d972198cc56f2504d781be083c3f8da4794a5c11468e31
|
|
| MD5 |
d83e7c94c8a8985ac6a70d6279354ef8
|
|
| BLAKE2b-256 |
3d21f9e6d72197022ce8b1c6435a632726b986033b3eda187c73ae15c092c553
|