Sparta rabbit library
Project description
sparta-rabbit
Sparta rabbit library.
Usage
import sparta.rabbit
con_data = sparta.rabbit.RabbitMQConnectionProvider(
host="localhost",
username="guest",
password="guest",
)
client = sparta.rabbit.RabbitMQClient(con_data)
await client.create_queue("hello")
await client.publish_to_queue("hello", "hi there")
await client.listen_to_queue("hello", lambda message: print(f"Received {message}"), timeout=10)
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
sparta-rabbit-0.0.5.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for sparta_rabbit-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0960c29f0dc658b36eb34c3cb64475ba32a76ad4181852a741cd6ab6f24f0d0f |
|
MD5 | ac56eb7144bf822d7d89457f19a0e6d3 |
|
BLAKE2b-256 | 327b1f6c3378e3962069d1a76e2a3c8274fbdf25509828f92e9a148109a3ebfa |