Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install smpp.twisted

How to install smpp.twisted

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install smpp.twisted
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.4Never BuiltWhy not?
0.2 Failed View build log
Windows (64-bit)
0.4Never BuiltWhy not?
0.2 Failed View build log
Mac OS X (10.5+)
0.4Never BuiltWhy not?
0.2 Failed View build log
Linux (32-bit)
0.4 Available View build log
0.2 Failed View build log
Linux (64-bit)
0.4 Available View build log
0.2 Failed View build log
 
Author
License
Apache License 2.0
Imports
Lastest release
version 0.4 on Aug 4th, 2013

SMPP 3.4 client built on Twisted

http://www.nowsms.com/discus/messages/1/24856.html

Example

import logging from twisted.internet import reactor, defer from smpp.twisted.client import SMPPClientTransceiver, SMPPClientService from smpp.twisted.config import SMPPClientConfig

class SMPP(object):

def __init__(self, config=None):
if config is None:
config = SMPPClientConfig(host='localhost', port=999, username='uname', password='pwd')

System Message: WARNING/2 (<string>, line 17)

Definition list ends without a blank line; unexpected unindent.

self.config = config

@defer.inlineCallbacks def run(self):

System Message: ERROR/3 (<string>, line 21)

Unexpected indentation.
try:
#Bind smpp = yield SMPPClientTransceiver(self.config, self.handleMsg).connectAndBind() #Wait for disconnect yield smpp.getDisconnectedDeferred()
except Exception, e:
print "ERROR: %s" % str(e)
finally:
reactor.stop()
def handleMsg(self, smpp, pdu):
""" NOTE: you can return a Deferred here """ print "Received pdu %s" % pdu
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG) SMPP().run() reactor.run()
Credits

Subscribe to package updates

Last updated Aug 4th, 2013

Download Stats

Last month:3

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.