Introduction
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.
Metadata
Release files for sqspy 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sqspy-1.0.0.tar.gz | 8.2 kB | Without provenance | Details for sqspy-1.0.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sqspy-1.0.0-py3.9.egg | Legacy Egg format | - | - | Details for sqspy-1.0.0-py3.9.egg |
| sqspy-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for sqspy-1.0.0-py3-none-any.whl |
Total release size: 24.6 kB
Release files / sqspy-1.0.0.tar.gz
| Download URL | sqspy-1.0.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c12f41475fa6ffa1458b709f8b6ae5ce1c82656ece34f2e3693b2dc6ac0d92d1
|
|
BLAKE2b-256 checksum How to use checksums |
657b3ba74f8fb281002844fc030dfa41ec637e59a7bb6f5b49198448402cb566
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / sqspy-1.0.0-py3.9.egg
| Download URL | sqspy-1.0.0-py3.9.egg |
|---|---|
| Size | 8.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
33e8b1d2cac0739da723b33a2100a2d6fddc5a073dcd6693a5e09ff8611a46cf
|
|
BLAKE2b-256 checksum How to use checksums |
bdf6efe2441c373568b71b356909615afb3fa3b53da3925b492eff12df3a15cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / sqspy-1.0.0-py3-none-any.whl
| Download URL | sqspy-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cba48208c8f62d23f70adab22b529f4f77efd0559079c45511dcf8862fdd7cbc
|
|
BLAKE2b-256 checksum How to use checksums |
b2f6508605c3d9f04ea88579074c3dbd64ea69387e23fa0441afda4653c5cd3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for sqspy 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.