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.7.tar.gz (9.5 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.7-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: msx_charset-0.1.7.tar.gz
  • Upload date:
  • Size: 9.5 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.7.tar.gz
Algorithm Hash digest
SHA256 4987eef32e4c86daa966c61ec8407d4787414c6b2d03b04b678b303bcda3c270
MD5 20539438598d318c46c477048f097abe
BLAKE2b-256 a3024cce2aedcbe2a640ca524e3f022619288bf75894024e47280c95fa1de224

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msx_charset-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 10.0 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0d7fa51c45c43aa76683fb3b124cad11ea027ed86340d6d342277c960c74f8ff
MD5 f3b5097a595553ad3289107253f2f792
BLAKE2b-256 2b176acefd6a62418d99bd5b8a30bf0b9f0832d48272df8c8b6a13e77bc63542

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