Skip to content

adammck/pykannel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

This is a lightweight interface to Kannel to make sending and receiving SMS messages in Python a little more friendly, at the cost of a little abstraction. It's very bare right now; you may consider that an invitation for patches.

Sending an SMS

sender = SmsSender("kuser", "kpass")
sender.send("1234567890", "Hello")
sender.send("0987654321", "Goodbye")

Receiving SMS

class TestReceiver():
    def iGotAnSMS(self, caller, msg):
        print "SMS from %s: %s" % (caller, msg)

tr = TestReceiver()
print "Waiting for SMS..."
SmsReceiver(tr.iGotAnSMS).run()

About

Kannel helper class (to send and receive SMS messages) in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages