Skip to main content

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)

Source distribution for sparta-rabbit 0.0.8
File Size Uploaded
sparta-rabbit-0.0.8.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sparta-rabbit 0.0.8
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page