Skip to main content

MSX Character Set Converter

Test

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)

Source distribution for msx-charset 0.1.7
File Size Uploaded
msx_charset-0.1.7.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for msx-charset 0.1.7
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.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