Skip to main content

Sparta rabbit library

Project description

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)

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.8.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sparta_rabbit-0.0.8-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file sparta-rabbit-0.0.8.tar.gz.

File metadata

  • Download URL: sparta-rabbit-0.0.8.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for sparta-rabbit-0.0.8.tar.gz
Algorithm Hash digest
SHA256 d0f6d1d914aaf7fcc9967ca8be8942a913d7d6e4a85fed698c9300b66d58b375
MD5 cf6ec051a5fe4b056a58b20f4f6503a0
BLAKE2b-256 40aae803757905702ecf4d870229f1477af3ef788b41f7539118b937c70d622b

See more details on using hashes here.

File details

Details for the file sparta_rabbit-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: sparta_rabbit-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for sparta_rabbit-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 603ad33b05c2f7253275cdf23b9f44f11791a0e81fdcab25533284086e98e2b0
MD5 2a7ff9db62a6b26341788cc0135184cf
BLAKE2b-256 08df3db6824f53bd007c4f771a9f65aed567e9fe6bd466377df15e0090d2660e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page