t61codec is a Python library that provides a codec for handling ITU T.61 character strings. It allows encoding Python strings into T.61 byte sequences and decoding T.61 byte sequences back into Python strings. The current version is 2.0.0 and it maintains a semantic versioning release cadence, though updates are infrequent.
pip install t61codecVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to register the t61codec and then use Python's built-in `codecs` module to encode and decode strings using the 't.61' encoding.
Always call `t61codec.register()` once at the start of your application or before the first use of the 't.61' encoding.
Ensure that input strings only contain characters representable in T.61 or implement appropriate error handling (e.g., `'replace'`, `'ignore'`) when encoding.
Add `t61codec.register()` at the beginning of your script or before attempting to use the 't.61' encoding.
Filter out or replace unsupported characters before encoding, or specify an error handler like `errors='replace'` or `errors='ignore'` in the `encode` call (e.g., `codecs.encode(my_string, 't.61', errors='replace')`).
No dependency data recorded yet.