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.24.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.24.0.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qrusty_pyclient-0.24.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / qrusty_pyclient-0.24.0.tar.gz
| Download URL | qrusty_pyclient-0.24.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b227f7cbf7daefe83ab574de12d1d97041f304ca6c45d9f379593b16fd0743b0
|
|
BLAKE2b-256 checksum How to use checksums |
e02ec678d9916983838fbbd74b02370ab40d5b255de827b39fbc93c0070eff97
|
| 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.24.0-py3-none-any.whl
| Download URL | qrusty_pyclient-0.24.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
075aa00ac91b61f976a3a478f1a26b765429c11ebb6ba9a70a8f1cd03ef9db62
|
|
BLAKE2b-256 checksum How to use checksums |
8597923b342849ff77010f0b2c65d9380c50924b080abe9063b2e9f527630090
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|