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
mbstrdecoder-1.1.4.tar.gz
(14.5 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8105ef9cf6b7d7d69fe7fd6b68a2d8f281ca9b365d7a9b670be376b2e6c81b21
|
|
MD5 |
c9d9514be421c358ca75faea3a430672
|
|
BLAKE2b-256 |
31ab05ae008357c8bdb6245ebf8a101d99f26c096e0ea20800b318153da23796
|
Provenance
The following attestation bundles were made for mbstrdecoder-1.1.4.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.4.tar.gz
-
Subject digest:
8105ef9cf6b7d7d69fe7fd6b68a2d8f281ca9b365d7a9b670be376b2e6c81b21
- Sigstore transparency entry: 163385657
- Sigstore integration time:
-
Permalink:
thombashi/mbstrdecoder@48661b8f4353f6bdd380e4d67ea289a283028636
-
Branch / Tag:
refs/tags/v1.1.4
- Owner: https://github.com/thombashi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yml@48661b8f4353f6bdd380e4d67ea289a283028636
-
Trigger Event:
push
-
Statement type:
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
03dae4ec50ec0d2ff4743e63fdbd5e0022815857494d35224b60775d3d934a8c
|
|
MD5 |
766b5a5642f8da90cdedc05aee2a6935
|
|
BLAKE2b-256 |
30ac5ce64a1d4cce00390beab88622a290420401f1cabf05caf2fc0995157c21
|
Provenance
The following attestation bundles were made for mbstrdecoder-1.1.4-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.4-py3-none-any.whl
-
Subject digest:
03dae4ec50ec0d2ff4743e63fdbd5e0022815857494d35224b60775d3d934a8c
- Sigstore transparency entry: 163385659
- Sigstore integration time:
-
Permalink:
thombashi/mbstrdecoder@48661b8f4353f6bdd380e4d67ea289a283028636
-
Branch / Tag:
refs/tags/v1.1.4
- Owner: https://github.com/thombashi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yml@48661b8f4353f6bdd380e4d67ea289a283028636
-
Trigger Event:
push
-
Statement type: