Skip to main content

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 Linux/macOS CI status https://img.shields.io/appveyor/ci/thombashi/mbstrdecoder/master.svg?label=Windows%20CI Test coverage

Installation

pip install mbstrdecoder

or install all of the optional dependencies:

pip install mbstrdecoder[all]

Usage

Sample Code:
from __future__ import print_function
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

Python 2.7+ or 3.4+

Optional dependencies

Test 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-0.7.1.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

mbstrdecoder-0.7.1-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mbstrdecoder-0.7.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for mbstrdecoder-0.7.1.tar.gz
Algorithm Hash digest
SHA256 b14f692fbe3722c051d8ab15468e31c336b85e38efb1cf338e2952f9a8a15543
MD5 d2908773dd54a2084a1a985f0eb1ce89
BLAKE2b-256 4595d2bd14a68aae65bb65e64289eb3017946a5745e2fc4f83416d0e4372530b

See more details on using hashes here.

File details

Details for the file mbstrdecoder-0.7.1-py2.py3-none-any.whl.

File metadata

  • Download URL: mbstrdecoder-0.7.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for mbstrdecoder-0.7.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 61341b728d81bb87e68ced0635e658c971559762d37830dcf4dba8fce997fe5e
MD5 33bf233e03377cbbdd620d2bb72b707b
BLAKE2b-256 821e5659e4ef6ad2392203c6ddc010129011792eb8f32895a553c3e56972c26e

See more details on using hashes here.

Supported by

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