Skip to main content

Python SMS PDU Decoder

Project description

SMS-PDU Decoder

This library will help you to decode raw SMS data you can get from a GSM modem.

It has some encoding functionality as well.

It is recommended to read GSM 03.40 to facilitate understanding.

Requires Python 3.6 or 3.7.

How to install

pip install smspdudecoder

How to test

If you want to experiment with it, clone the repository, do some changes, and type tox (tox needs to be installed) to launch tests.

How to use

Please take a look at the source code, which comes with documentation and examples.

For instance, you can use GSM and UCS2 encodings just like that:

>>> from smspdu.codecs import GSM, UCS2
>>> GSM.decode('C8F71D14969741F977FD07')
'How are you?'
>>> UCS2.decode('004C006F00720065006D00200049007000730075006D')
'Lorem Ipsum'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smspdudecoder-1.2.2.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

smspdudecoder-1.2.2-py3-none-any.whl (10.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page