Skip to content

andreimarcu/aamnotifs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = aamnotifs.Notifs("amqps://user:[email protected]:5673/%2F")

Send a message:

n.send("test_channel_one", "Notification title", "Notification content")
n.send("test_channel_two", "Notification title", "Notification content")

Listen for messages:

n.receive("test_channel_one", callback_function)

# OR n.receive(["test_channel_one", "test_channel_two"], callback_function)
# or even n.receive(["#"], callback_function)  # wildcard matches all channels

Author

Andrei Marcu
http://andreim.net/

About

Simple notifications implementation with RabbitMQ using pika.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages