Skip to main content

viscii-codec

viscii-codec is a Python package adding support for the viscii codecs. viscii is a legacy vietnamese language codec.

This package has been tested on python 3.8, 3.8, 3.10, 3.11, 3.12, 3.13, and 3.14. It may work on other versions but they have not been tested.

Installation

The viscii-codec package is available on pypi and can be installed using any package manager.

pip install viscii-codec
uv add viscii-codec

Usage

To encode "Xin chào, thế giới!" (Hello World! according to translate) using viscii use:

# You must import the package to register the codec.
>>> import viscii
>>> "Xin chào, thế giới!".encode('viscii')
b'Xin ch\xe0o, th\xaa gi\xbei!'

To decode viscii bytes into unicode use:

>>> import viscii
>>> b'Xin ch\xe0o, th\xaa gi\xbei!'.decode('viscii')
'Xin chào, thế giới!'

Sources

The mapping was generated from RFC-1456 and cross referenced with the vietstd report of September 1992.

Testing

% python -m unittest
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK

Metadata

Release files for viscii-codec 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for viscii-codec 1.0.1
File Size Uploaded
viscii_codec-1.0.1.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for viscii-codec 1.0.1
File Interpreter ABI Platform
viscii_codec-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / viscii_codec-1.0.1.tar.gz

Download URL viscii_codec-1.0.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a011636b4b4aec765859636197e7f0d65293a13bb03bb5457727adbc68cc2d85
BLAKE2b-256 checksum
How to use checksums
99ebe615f6c918ba5be62fa51db60a2b777a80fccd0e87c40695e232bd9f639f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.2

Release files / viscii_codec-1.0.1-py3-none-any.whl

Download URL viscii_codec-1.0.1-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3af093d3a1a7f1612e070f567310c10603069b9658ac8a8f75bc01c161a398bb
BLAKE2b-256 checksum
How to use checksums
f1f953b35fcdea7d0c11fee3aa9b7d47bfd18b218e00f7023ee8b9408c7e311f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.2

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page