Sapo Codebits 2008: First Project – irnotify

Posted: November 14th, 2008

The first project I’ve made (well technically second since it’s a support lib for another project) is now available (via SVN) at google code – irnotify.

A python library for making notifications. Currently implements notifications via XMPP (Jabber), SMTP (Mail) and Twitter direct messages.

Here’s the example code:

Twitter DM

from twitternotify import TwitterNotify
n = TwitterNotify("twitter.conf")
n.notify("lrei", "How do you feel, Rei?")

XMPP message

from xmppnotify import XMPPNotify
n = XMPPNotify("xmpp.conf")
n.notify("luis.rei@gmail.com", "How do you feel, Rei?")