A helper to manage Rabbit queues.
Project description
queue_helpers
This package is a helper that is used to manage queues in RabbitMQ.
Installing
pip install queue_helpers
Usage
>>> from queue_helpers import RpcClient
>>> def send_rpc_message(queue_name, request, rabbit_username, rabbit_password, rabbitserver, vhost):
... client = RpcClient(rabbit_server_host=rabbitserver,
... virtual_host=vhost,
... server_queue_name=queue_name,
... username=rabbit_username,
... password=rabbit_password)
... resp = client.call(json.dumps(request))
... response = json.loads(resp.decode("utf-8"))
... return response
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
queue_helpers-0.1.4.tar.gz
(3.5 kB
view details)
File details
Details for the file queue_helpers-0.1.4.tar.gz.
File metadata
- Download URL: queue_helpers-0.1.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50b0480b080877abe81db59fd426eeb89eb26bb2d3fe0e5738bbe2d48f9cc071
|
|
| MD5 |
4ab429809f08a6285a0e318d5c8ce22b
|
|
| BLAKE2b-256 |
92992531c1a5929df7d5785674a166e8f2c61a0b99af4b245a3b5e694f9b7660
|