Skip to content

A Python library for interacting with RabbitMQ - message broker

Notifications You must be signed in to change notification settings

AminEhsan/rabbitMQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

A Python library for interacting with RabbitMQ - message broker

How to run Python

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

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 :

├── main.py

About

A Python library for interacting with RabbitMQ - message broker

Topics

Resources

Stars

Watchers

Forks

Languages