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 required parameters
handler = DLQHandler(
    dlq_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,
    region_name='us-east-1',
    env=my_env_config,  # replace with your actual environment config
    nome_lambda='lambda-reprocessamento-dlq',
    namespace='DLQ-Mensageria'
)

# 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

dlqhandler-0.1.9.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

dlqhandler-0.1.9-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file dlqhandler-0.1.9.tar.gz.

File metadata

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

File hashes

Hashes for dlqhandler-0.1.9.tar.gz
Algorithm Hash digest
SHA256 5ca182dfa404a5b02a6f115aa80cf7d344ef402662303aa0d8e75345b2abc300
MD5 32f68a2972bbe68891550fc1cd7e57fe
BLAKE2b-256 0d4b22d52e09002fb2ec793647f36d615cb836e86207f95fc496b2f33dff4b4a

See more details on using hashes here.

File details

Details for the file dlqhandler-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: dlqhandler-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for dlqhandler-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 bf49c95d18d1c6d2fbe1bb86ec44efee326115087459756364818f1d23e49dd1
MD5 47002935a02f61563133635cbc3de9bb
BLAKE2b-256 501699a89e18befe8f4eca173bf84161e94f64a41b427ee01d612c8c8f1a594b

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