Python Codec for 3GPP TS 23.038 / ETSI GSM 03.38
Note
This codec doesn't cover character packing as in chapter 6.1.2 of the GSM standard. The byte array has already to be split into octets.
Decode GSM 03.38 encoded bytes:
>>> import gsm0338 >>> b'\x1b(\x1b)'.decode('gsm03.38') u'{}'
Encode bytes in GSM 03.38:
>>> import gsm0338 >>> u'{}'.encode('gsm03.38') b'\x1b(\x1b)'
The codec implements the encoding and decoding methods in the stateless codecs.Codec class. With loading the module the codec get's automatically registered.
3GPP TS 23.038 version 15.0.0 Release 15
3GPP TS 23.038 Rel-15: Alphabets and language-specific information http://www.3gpp.org/dynareport/23038.htm
Use Poetry to install project dependencies.
poetry install