Simple SQS
Provides a simple class-based wrapper around AWS SQS.
Quick start
Install with pip:
pip install simplesqs
Creating a queue:
from simplesqs.message import MessagingHandler
queue_name = "test_queue_simplesqs"
handler = MessagingHandler(queue_name=queue_name)
handler.create_queue()
Sending a message:
from simplesqs.message import MessagingHandler
queue_name = "test_queue_simplesqs"
handler = MessagingHandler(queue_name=queue_name)
handler.send_message(message_type='test', message={'message': f"Hello world!"})
Reading messages:
from simplesqs.message import MessagingHandler
queue_name = "test_queue_simplesqs"
handler = MessagingHandler(queue_name=queue_name)
while True:
messages = handler.batch_receive_messages(message_type='test')
if len(messages) == 0:
break
for message in messages:
print(message.message)
message.delete()
Metadata
Release files for simplesqs 0.4.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 | |
|---|---|---|---|---|
| simplesqs-0.4.0.tar.gz | 4.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simplesqs-0.4.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 9.0 kB
Release files / simplesqs-0.4.0.tar.gz
| Download URL | simplesqs-0.4.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d29f5d9400bc1ef88ca69e3975a500bb73c07d46e64617578e0b59a98c4d8d2
|
|
BLAKE2b-256 checksum How to use checksums |
147bfb834776605a4bf67f4c00b31f7a796256dbb9c84bfb80d236e21b3fcb62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.10
|
Release files / simplesqs-0.4.0-py2.py3-none-any.whl
| Download URL | simplesqs-0.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4fa8d5ee09b75310253637b2c6e2490cfa926b0683b855b0548a18b468eb8390
|
|
BLAKE2b-256 checksum How to use checksums |
f79aa09b8451a22c400f245b7f138b1c9afaafe4148b210d145069b25286f729
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.10
|
Security for simplesqs 0.4.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.