Skip to main content

A RabbitMQ publisher implementation for Swarmauri.

Project description

Swarmauri RabbitMQ Publisher

This package provides a RabbitMQ publisher implementation conforming to the Swarmauri PublishBase interface.

Installation

This package is part of the Swarmauri SDK monorepo.

Usage

from swarmauri_publisher_rabbitmq import RabbitMQPublisher

# Example usage with host/port
publisher = RabbitMQPublisher(
    host="localhost",
    port=5672,
    username="guest",
    password="guest",
    exchange="my_exchange"
)
publisher.publish(channel="my_routing_key", payload={"message": "Hello RabbitMQ!"})

# Example usage with URI
# publisher_uri = RabbitMQPublisher(
#     uri="amqp://guest:guest@localhost:5672/",
#     exchange="my_exchange"
# )
# publisher_uri.publish(channel="my_routing_key", payload={"message": "Hello via URI!"})

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

swarmauri_publisher_rabbitmq-0.3.0.dev3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file swarmauri_publisher_rabbitmq-0.3.0.dev3.tar.gz.

File metadata

File hashes

Hashes for swarmauri_publisher_rabbitmq-0.3.0.dev3.tar.gz
Algorithm Hash digest
SHA256 d84ffad7c64477c5171fb74c288f29854d615d3b2eddfad518f2452bd05cb782
MD5 bed7b8ad5d94f892948c80008722e2ae
BLAKE2b-256 7368e3fe80a88ec363ff5bf5712d72bfe8c353bff3be7d60709542cb38cf66ee

See more details on using hashes here.

File details

Details for the file swarmauri_publisher_rabbitmq-0.3.0.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_publisher_rabbitmq-0.3.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 8b89285c4b42b614ec32387a12e532606bdba52aa0457a4d5e3fe55c6a61e6be
MD5 70b40d714a930b38ceffd40ac58e2b86
BLAKE2b-256 f54e46b7d542abc97c649bd32daf2d57e1b828c59bb5e296c76f423254e7fa3c

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