This package implements encode/decode functions for GSM (Global System for Mobile Communications - SMS - 2G).
This package require :
- python3
- python3 Standard Library
pip install GSMEncoding
from GSMEncoding import gsm7bitencode, gsm7bitdecode
assert gsm7bitencode("Unit Test") == "55779A0EA296E774"
assert gsm7bitdecode("55779A0EA296E774").rstrip("\x00") == "Unit Test"
assert gsm7bitdecode(gsm7bitencode(b'Unit Test')).rstrip(b"\x00") == b"Unit Test"
Licensed under the GPL, version 3.