Skip to main content

Tool for pulling messages from pubsub subscriptions

Project description


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


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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aylien_message_puller-0.0.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

aylien_message_puller-0.0.1-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page