MSX Character Set Converter
A Python package for converting between Unicode and MSX character sets, supporting Japanese, International, and Brazilian character sets.
Features
- Support for MSX character set conversion:
- Japanese version
- International version
- Brazilian version
- Compatible with Python 3.9 and later
Installation
pip install msx-charset
Usage
Japanese Character Set
import msx_charset
# Encoding
text = "こんにちは"
encoded = text.encode('msx-jp')
print(encoded) # MSX code byte sequence
# Decoding
decoded = encoded.decode('msx-jp')
print(decoded) # "こんにちは"
International Character Set
import msx_charset
# Encoding
text = "áéíóú"
encoded = text.encode('msx-intl')
print(encoded) # MSX code byte sequence
# Decoding
decoded = encoded.decode('msx-intl')
print(decoded) # "áéíóú"
Brazilian Character Set
import msx_charset
# Encoding
text = "Olá, mundo!"
encoded = text.encode('msx-br')
print(encoded) # MSX code byte sequence
# Decoding
decoded = encoded.decode('msx-br')
print(decoded) # "Olá, mundo!"
Development
Setup
# Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install development package
pip install -e .
Running Tests
python -m unittest discover -s tests
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License
Metadata
Release files for msx-charset 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| msx_charset-0.1.7.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| msx_charset-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.5 kB
Release files / msx_charset-0.1.7.tar.gz
| Download URL | msx_charset-0.1.7.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4987eef32e4c86daa966c61ec8407d4787414c6b2d03b04b678b303bcda3c270
|
|
BLAKE2b-256 checksum How to use checksums |
a3024cce2aedcbe2a640ca524e3f022619288bf75894024e47280c95fa1de224
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / msx_charset-0.1.7-py3-none-any.whl
| Download URL | msx_charset-0.1.7-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d7fa51c45c43aa76683fb3b124cad11ea027ed86340d6d342277c960c74f8ff
|
|
BLAKE2b-256 checksum How to use checksums |
2b176acefd6a62418d99bd5b8a30bf0b9f0832d48272df8c8b6a13e77bc63542
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|