qrusty_pyclient
A Python client wrapper for the qrusty API.
Features
- Connect to a qrusty server
- Publish, consume, ack, and purge messages
- List and manage queues
Installation
pip install qrusty_pyclient
Usage
from qrusty_pyclient import QrustyClient
client = QrustyClient(base_url="http://localhost:6784")
client.create_queue(name="orders", ordering="MaxFirst", allow_duplicates=True)
client.publish(queue="orders", priority=100, payload={"order_id": 123})
# Text priorities are also supported for queues with priority_kind="Text"
client.create_queue(name="tags", ordering="MinFirst", priority_kind="Text")
client.publish(queue="tags", priority="alpha", payload={"tag": "first"})
message = client.consume(queue="orders", consumer_id="worker-1")
if message is not None:
client.ack(queue="orders", message_id=message["id"], consumer_id="worker-1")
Development
Don't forget your ~/.pypirc file if you intend to publish to PyPI.
License
MIT
Metadata
Release files for qrusty-pyclient 0.23.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 | |
|---|---|---|---|
| qrusty_pyclient-0.23.0.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qrusty_pyclient-0.23.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / qrusty_pyclient-0.23.0.tar.gz
| Download URL | qrusty_pyclient-0.23.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
029f738e09689182f1fda0c552c3ce26299c01effa910b9957517093a7225f2f
|
|
BLAKE2b-256 checksum How to use checksums |
9896fbbb2af33167d7c3d60714654c2f8e0d8010b3b59806fdbbe402896611c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / qrusty_pyclient-0.23.0-py3-none-any.whl
| Download URL | qrusty_pyclient-0.23.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49893f138d882eecf588aef21979371386ac88018effc7f9ce925a4038864f40
|
|
BLAKE2b-256 checksum How to use checksums |
0b5477c20d83ef31475f50a24758a792c4336bbc9cfec85516dc11381932c5f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|