https://github.com/exhuma/t61codec
Python codec for T.61 strings
https://github.com/exhuma/t61codec
Last synced: about 1 year ago
JSON representation
Python codec for T.61 strings
- Host: GitHub
- URL: https://github.com/exhuma/t61codec
- Owner: exhuma
- License: mit
- Created: 2019-12-08T16:19:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-05T05:36:34.000Z (over 4 years ago)
- Last Synced: 2025-03-03T22:41:27.488Z (over 1 year ago)
- Language: Python
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
Python Codec for ITU T.61 Strings
=================================
For information about the codec see https://en.wikipedia.org/wiki/ITU_T.61
Installation
------------
Installation follows the standard Python procedure:
::
pip install t61codec
The package uses Semantic Versioning 2.0 (https://semver.org/spec/v2.0.0.html).
Usage
-----
The codec can be registered into Python's codec registry. A helper method has
been provided::
import t61codec
t61codec.register()
Please see the notes on `codecs.register
`_!
After registering, the codec is available as either ``'t61'`` or ``'t.61'``::
>>> b'Hello T.61: \xe0'.decode('t.61')
'Hello T.61: Ω'
>>> 'Hello T.61: Ω'.encode('t.61')
b'Hello T.61: \xe0'