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.dev2.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.dev2.tar.gz.

File metadata

File hashes

Hashes for swarmauri_publisher_rabbitmq-0.3.0.dev2.tar.gz
Algorithm Hash digest
SHA256 607ffc0c1c1ac439b7c9e47e816f95c2f75e271316cacac6b32fa1aa104f5466
MD5 6fe903fef8eb68e3c2aefbe9da076890
BLAKE2b-256 57151c6e81b4faedb0742fb73b1949d7e764c99767da98e08cf2535fe3de2d58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_publisher_rabbitmq-0.3.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd9828749002346b162988b858d1558e8b6fdd3248ee8ca17738e23a3e8582de
MD5 2ab359c73c16eb4c16ace91807a8fed3
BLAKE2b-256 7c9ec3be3835552034243ef9ca13b0895b624c269b235ce81bc6f4c1d419752e

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