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.4.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

mbstrdecoder-1.1.4-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mbstrdecoder-1.1.4.tar.gz
Algorithm Hash digest
SHA256 8105ef9cf6b7d7d69fe7fd6b68a2d8f281ca9b365d7a9b670be376b2e6c81b21
MD5 c9d9514be421c358ca75faea3a430672
BLAKE2b-256 31ab05ae008357c8bdb6245ebf8a101d99f26c096e0ea20800b318153da23796

See more details on using hashes here.

Provenance

The following attestation bundles were made for mbstrdecoder-1.1.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: mbstrdecoder-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for mbstrdecoder-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 03dae4ec50ec0d2ff4743e63fdbd5e0022815857494d35224b60775d3d934a8c
MD5 766b5a5642f8da90cdedc05aee2a6935
BLAKE2b-256 30ac5ce64a1d4cce00390beab88622a290420401f1cabf05caf2fc0995157c21

See more details on using hashes here.

Provenance

The following attestation bundles were made for mbstrdecoder-1.1.4-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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page