{"library":"smpplib","title":"smpplib","type":"library","description":"SMPP library for Python implementing the Short Message Peer-to-Peer (SMPP) protocol for sending/receiving SMS via SMSCs. Current version: 2.2.4. Release cadence: irregular, with updates for bug fixes and features.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install smpplib"],"cli":null},"imports":["from smpplib import client","from smpplib import consts","from smpplib import pdu"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/python-smpplib/python-smpplib","docs":null,"changelog":null,"pypi":"https://pypi.org/project/smpplib/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import smpplib.client\nimport smpplib.consts\nimport logging\n\nlogging.basicConfig(level=logging.DEBUG)\n\nclient = smpplib.client.Client('smpp.example.com', 2775)\nclient.connect()\nclient.bind_transceiver(system_id='user', password='pass')\n\n# Send a short message\nimport os\ntry:\n    smpplib.pdu.SubmitSM(\n        source_addr_ton=consts.SMPP_TON_INTL,\n        source_addr_npi=consts.SMPP_NPI_ISDN,\n        source_addr='1234',\n        dest_addr_ton=consts.SMPP_TON_INTL,\n        dest_addr_npi=consts.SMPP_NPI_ISDN,\n        destination_addr='447700900000',\n        short_message='Hello, World!',\n        data_coding=consts.SMPP_DATA_CODING_DEFAULT,\n    )\nexcept Exception as e:\n    print(f\"Error: {e}\")\nclient.unbind()\nclient.disconnect()","lang":"python","description":"Connect to SMSC and send a simple SMS.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}