Skip to content

A Python library for interacting with RabbitMQ - message broker

Notifications You must be signed in to change notification settings

aminehsan/rabbitMQ-Controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

A Python library for interacting with RabbitMQ - message broker

How to run Python

broker = RabbitmqController(host='...', port=..., username='...', password='...', heartbeat=...)

broker.declare_queues(names=['...',], arguments=...)

def callback(ch, method, properties, body):
    data = body
    broker.accept(method=method)
    broker.reject(method=method, body=body)


broker.listen(prefetch_count=1, queue='...', callback=callback)
broker.send(queue='...', body=data)
broker.close()

Structure :

├── rabbitmq_controller.py
├── requirements.txt

About

A Python library for interacting with RabbitMQ - message broker

Topics

Resources

Stars

Watchers

Forks

Languages