Simple notifications implementation with RabbitMQ using pika.
- Python 2.6+
- pika
Best illustrated in the provided examples but this is the basic idea:
Connect to the RabbitMQ server:
n = notifs.Notifs("amqps://user:[email protected]:5673/%2F")
Send a message:
n.send("test_channel", "Notification title", "Notification content")
Listen for messages:
n.receive("test_channel", callback_function)
Andrei Marcu
http://andreim.net/