AWS SQS Consumer
Project description
Python AWS SQS Consumer
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef6c29b3e53f3a9fc319f375c0e46226c9b1be9aa48feb9da0b7f3d9adaebe0e |
|
MD5 | 1639e32098d44df5e8d3040e41a75e6d |
|
BLAKE2b-256 | d5feed833e3ee84325c65a2df66c638ff9623d39c305ccc5754fc8b80d3a7d79 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 935c9ab3057f2d8965422f392e3b2e183a40485d983f2724adfd1fba8196e112 |
|
MD5 | bf03e0eb225e1793b9696a6f3cdd1864 |
|
BLAKE2b-256 | 459de578e33ff13dac87796df5a2aeec5555ba2a20995a84992c82f644f9c99e |