dsch / gsm0338

Python codec for GSM 03.38

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gsm0338

https://travis-ci.com/dsch/gsm0338.svg?branch=master pre-commit.ci status

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.

Examples

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)'

How it works

The codec implements the encoding and decoding methods in the stateless codecs.Codec class. With loading the module the codec get's automatically registered.

Mapping source

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

Development

Use Poetry to install project dependencies.

poetry install

About

Python codec for GSM 03.38

License:MIT License


Languages

Language:Python 100.0%