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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| viscii_codec-1.0.1.tar.gz | 4.8 kB | Without provenance | Details for viscii_codec-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| viscii_codec-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for viscii_codec-1.0.1-py3-none-any.whl |
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
|
Security for viscii-codec 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.