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 details)

Uploaded Source

Built Distribution

aws_sqs_consumer-0.0.15-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file aws_sqs_consumer-0.0.15.tar.gz.

File metadata

  • Download URL: aws_sqs_consumer-0.0.15.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.15.0-1041-azure

File hashes

Hashes for aws_sqs_consumer-0.0.15.tar.gz
Algorithm Hash digest
SHA256 ef6c29b3e53f3a9fc319f375c0e46226c9b1be9aa48feb9da0b7f3d9adaebe0e
MD5 1639e32098d44df5e8d3040e41a75e6d
BLAKE2b-256 d5feed833e3ee84325c65a2df66c638ff9623d39c305ccc5754fc8b80d3a7d79

See more details on using hashes here.

File details

Details for the file aws_sqs_consumer-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: aws_sqs_consumer-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.15.0-1041-azure

File hashes

Hashes for aws_sqs_consumer-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 935c9ab3057f2d8965422f392e3b2e183a40485d983f2724adfd1fba8196e112
MD5 bf03e0eb225e1793b9696a6f3cdd1864
BLAKE2b-256 459de578e33ff13dac87796df5a2aeec5555ba2a20995a84992c82f644f9c99e

See more details on using hashes here.

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