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 dlqhandler

from dlqhandler import ProcessMessage

# Initialize the DLQHandler with the required parameters
process_message_handler = ProcessMessage(
    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
process_message_handler.execute()

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.6.9.tar.gz (5.4 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.6.9-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dlqhandler-0.6.9.tar.gz
Algorithm Hash digest
SHA256 22a536a287615e53c1d864f948854a0656564678b3539f4135347d6bf87257d4
MD5 a2a67f5122df00c1de8d11d53e012465
BLAKE2b-256 cdccd7dc6ac7a58c1f95827589155361bb598d1b2e684eed8c12361d9c4d3be9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dlqhandler-0.6.9-py3-none-any.whl
Algorithm Hash digest
SHA256 bf5634a978917cd3158d608978e690731c0e58b5a6ccee1c58f90d84e1da38d1
MD5 402beee78e7e39d61a0e20ea934ac343
BLAKE2b-256 cff6066958194c261f7c5a594fc987e2c33d101be68440725b5b03c2d17911db

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