Skip to main content
SMS encoding and decoding utilities



### installation

```shell
$ pip install sms_utilities
```



### usage

```python

import sms_utilities

# Generating RDPUs:
new_rpdu = sms_utilities.rpdu.RPDU()

# Generating SMS-DELIVER messages:
deliver_message = sms_utilities.SMS_Deliver.gen_msg(to, fromm, body)

# Generating SMS-SUBMIT messages:
submit_message = sms_utilities.SMS_Submit.gen_msg(to, body)

# Parsing incoming SMS:
sms_utilities.SMS_Parse.parse(rp_message)

# Some helper methods:
sms_utilities.SMS_Helper.to_hex2(integer)
sms_utilities.SMS_Helper.encode_num(123)
sms_utilities.SMS_Helper.clean('asdf')
sms_utilities.SMS_Helper.smspdu_charstring_to_hex('bcde')
```



### license
MIT



### releases
* 0.0.3 - fixes imports
* 0.0.2 - fixes MANIFEST.in filename
* 0.0.1 - initial pypi release



### testing
* nothing yet!



### reference
* PDU mode [background](http://www.gsm-modem.de/sms-pdu-mode.html)
* Wikipedia on [GSM 03.40](http://en.wikipedia.org/wiki/GSM_03.40)
* a PDF on [SMS in PDU mode](http://read.pudn.com/downloads122/doc/520173/SMS_PDU-mode.PDF)
* the [python-messaging package](https://github.com/pmarti/python-messaging)



### release process
bump the version in `setup.py`, add a note here in the readme, then run:

```shell
$ git tag 0.0.1 -m 'sms_utilities v0.0.1'
$ git push origin master --tags
$ python setup.py sdist upload -r pypi
```

Metadata

Release files for sms_utilities 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sms_utilities 0.0.3
File Size Uploaded Provenance
sms_utilities-0.0.3.tar.gz 4.4 kB Without provenance Details

Release files / sms_utilities-0.0.3.tar.gz

Download URL sms_utilities-0.0.3.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e0ad57638e24af3d401887c0cb0add9570e3a335ff4b9e53ebb72e38c5e3519b
BLAKE2b-256 checksum
How to use checksums
bf888a88bd6c9ffa3dc4f7fab313ccd7aa0804217c81c25879c02e19926bc792
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sms_utilities 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page