sparta-rabbit
Sparta rabbit library.
Usage
import sparta.rabbit
conn_provider = sparta.rabbit.RabbitMQConnectionProvider(
host="localhost",
username="guest",
password="guest",
connection_name="some-identifier", # this allows to identify the connection in RabbitMQ dashboard
)
client = sparta.rabbit.RabbitMQClient(conn_provider)
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)
Release files for sparta-rabbit 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sparta-rabbit-0.0.8.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sparta_rabbit-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / sparta-rabbit-0.0.8.tar.gz
| Download URL | sparta-rabbit-0.0.8.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0f6d1d914aaf7fcc9967ca8be8942a913d7d6e4a85fed698c9300b66d58b375
|
|
BLAKE2b-256 checksum How to use checksums |
40aae803757905702ecf4d870229f1477af3ef788b41f7539118b937c70d622b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0
|
Release files / sparta_rabbit-0.0.8-py3-none-any.whl
| Download URL | sparta_rabbit-0.0.8-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
603ad33b05c2f7253275cdf23b9f44f11791a0e81fdcab25533284086e98e2b0
|
|
BLAKE2b-256 checksum How to use checksums |
08df3db6824f53bd007c4f771a9f65aed567e9fe6bd466377df15e0090d2660e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0
|