/GSMEncoding

This file implements encode/decode functions for GSM (SMS)

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

GSMEncoding logo

GSMEncoding

Description

This package implements encode/decode functions for GSM (Global System for Mobile Communications - SMS - 2G).

Requirements

This package require :

  • python3
  • python3 Standard Library

Installation

pip install GSMEncoding

Usages

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"

Links

Licence

Licensed under the GPL, version 3.