GSMEncoding (version 0.0.1)
index
gsmencoding.py

This package implements encode/decode functions for GSM (SMS).
 
>>> gsm7bitencode("Unit Test")
'55779A0EA296E774'
>>> gsm7bitdecode('55779A0EA296E774')
'Unit Test\x00'
>>> gsm7bitdecode(gsm7bitencode(b'Unit Test'))
b'Unit Test\x00'
 
~# python3 -m doctest -v gsm.py

 
Functions
       
gsm7bitdecode(data: Union[str, bytes]) -> Union[str, bytes]
>>> gsm7bitdecode('C7F7FBCC2E03')
'Google\x00'
>>> gsm7bitdecode(bytes.fromhex('C7F7FBCC2E03'))
b'Google\x00'
gsm7bitencode(data: Union[str, bytes]) -> Union[str, bytes]
>>> gsm7bitencode('Google')
'C7F7FBCC2E03'
>>> gsm7bitencode(b'Google').hex().upper()
'C7F7FBCC2E03'

 
Data
        __all__ = ['gsm7bitencode', 'gsm7bitdecode']
__author_email__ = 'mauricelambert434@gmail.com'
__copyright__ = '\nGSMEncoding Copyright (C) 2021 Maurice Lamber...ome to redistribute it\nunder certain conditions.\n'
__description__ = '\nThis package implements encode/decode functions for GSM (SMS).\n'
__license__ = 'GPL-3.0 License'
__maintainer__ = 'Maurice Lambert'
__maintainer_email__ = 'mauricelambert434@gmail.com'
__url__ = 'https://github.com/mauricelambert/GSMEncoding'

 
Author
        Maurice Lambert