Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 487 Bytes

README

File metadata and controls

23 lines (16 loc) · 487 Bytes

-- markdown -- This is sfpy, another Superfeedr XMPP API Python wrapper. You will need to install xmppy to run it

Example:

from sfpy import SuperFeedr

def sf_message(event):
    print 'received this event: ', str(event)
    return 1


def main():
    user = 'user'
    password = 'password'
    s = SuperFeedr(user, password)
    s.on_notification(sf_message)
    s.monitor() 

if __name__=='__main__':
    main()