AWS SQS utility package for producing and consuming messages
Project description
A more pythonic approach to SQS producer/consumer utilities. Heavily inspired from the the pySqsListener package.
Install
pip install sqspy
Usage
from sqspy import Consumer
class MyWorker(Consumer):
def handle_message(self, body, attributes, message_attributes):
print(body)
listener = MyWorker('Q1', error_queue='EQ1')
listener.listen()
More documentation coming soon.
Why
The mentioned project had a few issues which I faced while trying to implement at my organisation. The local environment testing setup was very flaky. The signatures for sqs_listener and sqs_producer were very different from each other.
This rewrite supports python 3.6+ versions only, and makes use of a lot of newer python features. It also makes use of service resources (for lazy calls) from the boto3 library instead of making calls via the low level client.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file sqspy-1.0.0.tar.gz
.
File metadata
- Download URL: sqspy-1.0.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.8.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c12f41475fa6ffa1458b709f8b6ae5ce1c82656ece34f2e3693b2dc6ac0d92d1 |
|
MD5 | 969bd1293d5c20f95aae6f10aedcef56 |
|
BLAKE2b-256 | 657b3ba74f8fb281002844fc030dfa41ec637e59a7bb6f5b49198448402cb566 |
File details
Details for the file sqspy-1.0.0-py3.9.egg
.
File metadata
- Download URL: sqspy-1.0.0-py3.9.egg
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.8.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33e8b1d2cac0739da723b33a2100a2d6fddc5a073dcd6693a5e09ff8611a46cf |
|
MD5 | 9d33cc602bee9f85fb80cf49b0645866 |
|
BLAKE2b-256 | bdf6efe2441c373568b71b356909615afb3fa3b53da3925b492eff12df3a15cf |
File details
Details for the file sqspy-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: sqspy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.8.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cba48208c8f62d23f70adab22b529f4f77efd0559079c45511dcf8862fdd7cbc |
|
MD5 | 0ee706b3b53df42ce10aafcb3c278e82 |
|
BLAKE2b-256 | b2f6508605c3d9f04ea88579074c3dbd64ea69387e23fa0441afda4653c5cd3b |