Skip to main content

Phoenix Letter pypi

Code style: black Build Status License: MIT

Bring your messages back from Dead Letter Queue with this command line script that helps you moving messages from DLQ back to the main queue for reprocessing SQS queues. It also can be used to move messages between queues in SQS.

Install

Manually

  • Mac/Linux: python3 setup.py install
  • Windows: py setup.py install

PyPi

  • pip install phoenix_letter

Usage

After installation you will have a command with the following params:

$   phoenix_letter --help
usage: phoenix_letter [-h] --src SOURCE_QUEUE --dst DESTINATION_QUEUE [--aws-keys] --region REGION [--empty-receive EMPTY_RECEIVE] [--max N] [--max-per-request N]

optional arguments:
  -h, --help            show this help message and exit
  --src SOURCE_QUEUE    Source SQS Queue Name
  --dst DESTINATION_QUEUE
                        Destination SQS Queue Name
  --aws-keys            Flag that indicates you want to enter custom AWS keys.
  --region REGION       AWS Region
  --empty-receive EMPTY_RECEIVE
                        Max number of empty receives before giving up
  --max N               Max number of messages to process from the source queue.
  --max-per-request N   Max number of messages to received from the source queue per request (this will be pass in the MaxNumberOfMessages param). Default: 10 (AWS API max limit)
  --fifo                Flag that indicates you want to interact with a FIFO queue.
  --group-id MESSAGE_GROUP_ID
                        Value for the MessageGroupId (used in FIFO queues). Required if '--fifo' argument is passed. Default: NULL.
  • --src: Source Queue Name
  • --dst: Destination Queue Name
  • --aws-keys: [OPTIONAL] The CLI will prompt you to enter the AWS keys securely. Default: Fallback to Boto, more information here.
  • --region: AWS Region.
  • --empty-receive: [OPTIONAL][default value=10] Number of empty receives before the script gives up trying to get message from queue.*
  • --empty-receive: [OPTIONAL][default value=10] Number of empty receives before the script gives up trying to get message from queue.*
  • --max: [OPTIONAL][default value=0] Number of messages to process from the source queue. 0 means everything*
  • --max-per-request: [OPTIONAL][default value=10] Max number of messages to received from the source queue per request (this will be pass in the MaxNumberOfMessages param). Default: 10 (AWS API max limit)
  • --fifo: [OPTIONAL][default value=False] Argument that indicates that it will connect to a FIFO queue
  • --group-id: [OPTIONAL][default value=None] If you pass --fifo this will be a required argument, otherwise, it will be ignored.

* Sometimes the SQS returns false empty receives, where there is messages on queue but for some reason AWS decided not return anything on that requests. To understand more here a link from AWS docs.

Metadata

Release files for phoenix-letter 0.3.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phoenix-letter 0.3.7
File Size Uploaded
phoenix_letter-0.3.7.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for phoenix-letter 0.3.7
File Interpreter ABI Platform
phoenix_letter-0.3.7-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / phoenix_letter-0.3.7.tar.gz

Download URL phoenix_letter-0.3.7.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
36f524efde66d39b5be9a14cd046e98cc70fd5311504946a9e325f8e33b9ec2e
BLAKE2b-256 checksum
How to use checksums
8c99c8dfcd047207d5b1c7913747bd69d475a477d538f9a3543c7f7b268c9f97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / phoenix_letter-0.3.7-py3-none-any.whl

Download URL phoenix_letter-0.3.7-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da5b2f2a1ec8fcc33051ee2a7c0415bada49145e818a1035af30a6cb6a432119
BLAKE2b-256 checksum
How to use checksums
c05a9f441318998f91eb7e8e89119789079d093df193ec7cf0c874e26e99c539
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.3.7 This release

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.2.0

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page