{ "info": { "author": "Alexander Pravdin", "author_email": "aledin@mail.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Twisted", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Networking" ], "description": "PTSMPP - Python Twisted SMPP 3.4 client library\n===============================================\n\nThis is a mixdown version of smpp.pdu and smpp.twisted packages found at\ngithub. It also includes enum package. The enum package was put to ptsmpp\npackage in order to eliminate a dependency conflict: the smpp.twisted\npackage requires pyOpenSSL package, which requires cryptography package,\nwhich requires enum34 package, which conflicts with the enum package,\nwhich is required by both smpp.pdu and smpp.twisted packages.\n\n\nSMPP 3.4 Protocol Specification\n-------------------------------\n\nhttp://www.nowsms.com/discus/messages/1/24856.html\n\n\nDebian packages\n---------------\n\nhttps://github.com/xanderdin/ptsmpp-dist-debian\n\n\nUsage example\n-------------\n\n import logging\n from twisted.internet import reactor, defer\n from ptsmpp.twisted.client import SMPPClientTransceiver, SMPPClientService\n from ptsmpp.twisted.config import SMPPClientConfig\n\n class SMPP(object):\n\n def __init__(self, config=None):\n if config is None:\n config = SMPPClientConfig(host='localhost', port=999,\n username='uname', password='pwd')\n self.config = config\n\n @defer.inlineCallbacks\n def run(self):\n try:\n #Bind\n smpp = yield SMPPClientTransceiver(\n self.config, self.handleMsg).connectAndBind()\n #Wait for disconnect\n yield smpp.getDisconnectedDeferred()\n except Exception, e:\n print \"ERROR: %s\" % str(e)\n finally:\n reactor.stop()\n\n def handleMsg(self, smpp, pdu):\n \"\"\"\n NOTE: you can return a Deferred here\n \"\"\"\n print \"Received pdu %s\" % pdu\n\n if __name__ == '__main__':\n logging.basicConfig(level=logging.DEBUG)\n SMPP().run()\n reactor.run()", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/xanderdin/ptsmpp", "keywords": "ptsmpp smpp twisted", "license": "Apache License 2.0", "maintainer": null, "maintainer_email": null, "name": "ptsmpp", "package_url": "https://pypi.org/project/ptsmpp/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ptsmpp/", "project_urls": { "Homepage": "https://github.com/xanderdin/ptsmpp" }, "release_url": "https://pypi.org/project/ptsmpp/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "PTSMPP - Python Twisted SMPP 3.4 client library", "version": "0.1.0" }, "last_serial": 1779948, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "6ef7b9694889486ead8b8334a5dde69a", "sha256": "82b5b21687709bf052f8ccb6e0c15616d1951e0944206773c69db42bdb405936" }, "downloads": -1, "filename": "ptsmpp-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6ef7b9694889486ead8b8334a5dde69a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 111559, "upload_time": "2015-10-21T13:15:05", "url": "https://files.pythonhosted.org/packages/00/88/06fb119ae098042e3eab90e921c8bac3d72bf0a1ab3a7fdbeaf242a5e9b7/ptsmpp-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6ef7b9694889486ead8b8334a5dde69a", "sha256": "82b5b21687709bf052f8ccb6e0c15616d1951e0944206773c69db42bdb405936" }, "downloads": -1, "filename": "ptsmpp-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6ef7b9694889486ead8b8334a5dde69a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 111559, "upload_time": "2015-10-21T13:15:05", "url": "https://files.pythonhosted.org/packages/00/88/06fb119ae098042e3eab90e921c8bac3d72bf0a1ab3a7fdbeaf242a5e9b7/ptsmpp-0.1.0.tar.gz" } ] }