ocrd_network.rabbitmq_utils.publisher module

The source code in this file is adapted by reusing some part of the source code from the official RabbitMQ documentation.

class ocrd_network.rabbitmq_utils.publisher.RMQPublisher(host: str = 'localhost', port: int = 5672, vhost: str = '/')[source]

Bases: RMQConnector

authenticate_and_connect(username: str, password: str) None[source]
setup_defaults() None[source]
publish_to_queue(queue_name: str, message: bytes, exchange_name: str | None = 'ocrd-network-default', properties: BasicProperties | None = None) None[source]
enable_delivery_confirmations() None[source]