Skip to main content

AWS SQS Consumer

Project description

Python AWS SQS Consumer

PyPI Build passing PyPI - Downloads

Write Amazon Simple Queue Service (SQS) consumers in Python with simplified interface. Define your logic to process an SQS message. After you're done processing, messages are deleted from the queue.

Checkout the full documentation - https://aws-sqs-consumer-python.readthedocs.io/en/latest/

Installation

pip install aws-sqs-consumer

Simple Usage

from aws_sqs_consumer import Consumer, Message

class SimpleConsumer(Consumer):
    def handle_message(self, message: Message):
        # Write your logic to handle a single `message`.
        print("Received message: ", message.Body)

consumer = SimpleConsumer(
    queue_url="https://sqs.eu-west-1.amazonaws.com/12345678901/test_queue",
    polling_wait_time_ms=5
)
consumer.start()

Contributing

Checkout the Contribution guidelines - CONTRIBUTING.md

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

aws_sqs_consumer-0.0.15.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

aws_sqs_consumer-0.0.15-py3-none-any.whl (5.5 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