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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cbfba26938befd8a35e3cc06ca0632f61320b7b2be7df32550b895e1725b1ce
|
|
| MD5 |
606e6a8f552d5d0aa40dd9a139c5e6cd
|
|
| BLAKE2b-256 |
4b9cdd6e38d747a62ead27f9abef32f4ca4311d4e40ac28e76bcc9ffb5dd0329
|
Provenance
The following attestation bundles were made for mbstrdecoder-1.1.5.tar.gz:
Publisher:
publish.yml on thombashi/mbstrdecoder
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mbstrdecoder-1.1.5.tar.gz -
Subject digest:
8cbfba26938befd8a35e3cc06ca0632f61320b7b2be7df32550b895e1725b1ce - Sigstore transparency entry: 1439142423
- Sigstore integration time:
-
Permalink:
thombashi/mbstrdecoder@844a2974c988f196740bfe13575d168510e007f2 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/thombashi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@844a2974c988f196740bfe13575d168510e007f2 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a50fe113d4abecfd86e8f716b2e413cce03d63af83ec3c7cdbe81dec0e519ed
|
|
| MD5 |
aba37e9bab1f1c041c96f1145569fce3
|
|
| BLAKE2b-256 |
4ceb711270faab7b7df702339a2c68b31fd3ed4fffc68b0e99e5bdf49b1e87e4
|
Provenance
The following attestation bundles were made for mbstrdecoder-1.1.5-py3-none-any.whl:
Publisher:
publish.yml on thombashi/mbstrdecoder
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mbstrdecoder-1.1.5-py3-none-any.whl -
Subject digest:
4a50fe113d4abecfd86e8f716b2e413cce03d63af83ec3c7cdbe81dec0e519ed - Sigstore transparency entry: 1439142433
- Sigstore integration time:
-
Permalink:
thombashi/mbstrdecoder@844a2974c988f196740bfe13575d168510e007f2 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/thombashi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@844a2974c988f196740bfe13575d168510e007f2 -
Trigger Event:
push
-
Statement type: