Skip to main content

A library for handling DLQ messages in AWS SQS

Project description

DLQ Handler Library

A library for handling DLQ (Dead Letter Queue) messages in AWS SQS. This library allows you to reprocess messages from a DLQ with specified parameters such as the queue URL, original queue URL, and maximum number of attempts.

Installation

To install the library, use pip:

pip install dlq_handler_lib

from dlq_handler_lib import DLQHandler

# Initialize the DLQHandler with the queue URL, original queue URL, and maximum attempts
handler = DLQHandler(
    queue_url='https://sqs.us-east-1.amazonaws.com/123456789012/my-dlq',
    original_queue_url='https://sqs.us-east-1.amazonaws.com/123456789012/my-queue',
    max_attempts=5
)

# Process the messages from the DLQ
handler.process_messages()

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

dlq_handler_lib-0.1.6.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dlq_handler_lib-0.1.6-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file dlq_handler_lib-0.1.6.tar.gz.

File metadata

  • Download URL: dlq_handler_lib-0.1.6.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for dlq_handler_lib-0.1.6.tar.gz
Algorithm Hash digest
SHA256 8f1902cdde5a669e49cfc8c71f596d020ef80c3b2f1ac829de6d409bbec1321a
MD5 8f64d7f259ad00572ebb7cceb47b0548
BLAKE2b-256 969f1e5890b7d063e70b8f7949587ed3886c792599b6d076162bbeae19d622f5

See more details on using hashes here.

File details

Details for the file dlq_handler_lib-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for dlq_handler_lib-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 38ad7189e49b74229f553cc26d7b80c5713ec21f1d85d9b84d2adcb6fd61486f
MD5 86188bc3d5dc0897b1a305b5f1b22e51
BLAKE2b-256 9ed6f687637f470aa1573f5509c00958dc090a789d085ffcd18eb7d9f62f451b

See more details on using hashes here.

Supported by

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