Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 557 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 557 Bytes

aamnotifs

Simple notifications implementation with RabbitMQ using pika.

Requirements

  • Python 2.6+
  • pika

Usage

Best illustrated in the provided examples but this is the basic idea:

Connect to the RabbitMQ server:

n = notifs.Notifs("amqps://user:password@domain.tld:5673/%2F")

Send a message:

n.send("test_channel", "Notification title", "Notification content")

Listen for messages:

n.receive("test_channel", callback_function)

Author

Andrei Marcu
http://andreim.net/