You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

dlqhandler

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dlqhandler

A library for handling DLQ messages in AWS SQS

0.8.0
PyPI
Maintainers
1

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


FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts