Python client wrapper for the qrusty API.
Project description
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
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qrusty_pyclient-0.20.7.tar.gz.
File metadata
- Download URL: qrusty_pyclient-0.20.7.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af5f2fdfc1199e27f0b3d83d56d2076030dbf8729b081bf49e7d8f93ad5f6c26
|
|
| MD5 |
8edab790bfb45d62e7f89e58500b5d6a
|
|
| BLAKE2b-256 |
f30e724f19fee6fbfa5f695fda002a972448814988eeb98bacb877b6ef249e1d
|
File details
Details for the file qrusty_pyclient-0.20.7-py3-none-any.whl.
File metadata
- Download URL: qrusty_pyclient-0.20.7-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
414f2d3070728c74aae071c7dd16266d1892ad03bef77abec30163c66a3042cf
|
|
| MD5 |
7bc2daf39356577b1f8303ea65afc748
|
|
| BLAKE2b-256 |
cbee49cf75e2188e06cb8e53aedda0f83cd0bd4a861192f8f297aa2137060dbd
|