Skip to main content

MSX character set codecs for Python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

msx_charset-0.1.6.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

msx_charset-0.1.6-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file msx_charset-0.1.6.tar.gz.

File metadata

  • Download URL: msx_charset-0.1.6.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for msx_charset-0.1.6.tar.gz
Algorithm Hash digest
SHA256 33e282e80c2ed465fbcfa55a5961760e59be4d9d693b59ca422b2c19586ae692
MD5 3e8ef74f771fb009467006c9ffac9c76
BLAKE2b-256 49f91a41a91f27b71551822da6c58ad7b27a90fce7b667b18d52fee97f489e80

See more details on using hashes here.

File details

Details for the file msx_charset-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: msx_charset-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for msx_charset-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 11b88728560852326f6e42d883852344668d6bac151248921f2787170726b912
MD5 9f463fec7215bf9b740076f0afb05aea
BLAKE2b-256 7da874db8907b314e4e0dc8bd74dd2882398fcefaf117189f26e11a1c703b9c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page