Skip to main content

mbstrdecoder is a Python library for multi-byte character string decoder

Project description

Summary

mbstrdecoder is a Python library for multi-byte character string decoder.

PyPI package version https://img.shields.io/pypi/pyversions/mbstrdecoder.svg Supported Python implementations CI status of Linux/macOS/Windows Test coverage CodeQL

Installation

Install from PyPI

pip install mbstrdecoder

Install from PPA (for Ubuntu)

sudo add-apt-repository ppa:thombashi/ppa
sudo apt update
sudo apt install python3-mbstrdecoder

Usage

Sample Code:
from mbstrdecoder import MultiByteStrDecoder

encoded_multibyte_text = "マルチバイト文字".encode("utf-8")
decoder = MultiByteStrDecoder(encoded_multibyte_text)

print("encoded bytes: {}".format(encoded_multibyte_text))
print("unicode: {}".format(decoder.unicode_str))
print("codec: {}".format(decoder.codec))
Output:
encoded bytes: b'\xe3\x83\x9e\xe3\x83\xab\xe3\x83\x81\xe3\x83\x90\xe3\x82\xa4\xe3\x83\x88\xe6\x96\x87\xe5\xad\x97'
unicode: マルチバイト文字
codec: utf_8

Dependencies

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

mbstrdecoder-1.1.5.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

mbstrdecoder-1.1.5-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file mbstrdecoder-1.1.5.tar.gz.

File metadata

  • Download URL: mbstrdecoder-1.1.5.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mbstrdecoder-1.1.5.tar.gz
Algorithm Hash digest
SHA256 8cbfba26938befd8a35e3cc06ca0632f61320b7b2be7df32550b895e1725b1ce
MD5 606e6a8f552d5d0aa40dd9a139c5e6cd
BLAKE2b-256 4b9cdd6e38d747a62ead27f9abef32f4ca4311d4e40ac28e76bcc9ffb5dd0329

See more details on using hashes here.

Provenance

The following attestation bundles were made for mbstrdecoder-1.1.5.tar.gz:

Publisher: publish.yml on thombashi/mbstrdecoder

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mbstrdecoder-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: mbstrdecoder-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mbstrdecoder-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4a50fe113d4abecfd86e8f716b2e413cce03d63af83ec3c7cdbe81dec0e519ed
MD5 aba37e9bab1f1c041c96f1145569fce3
BLAKE2b-256 4ceb711270faab7b7df702339a2c68b31fd3ed4fffc68b0e99e5bdf49b1e87e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mbstrdecoder-1.1.5-py3-none-any.whl:

Publisher: publish.yml on thombashi/mbstrdecoder

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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