{"id":15704093,"url":"https://github.com/thombashi/mbstrdecoder","last_synced_at":"2025-05-07T21:44:13.646Z","repository":{"id":52280348,"uuid":"76090645","full_name":"thombashi/mbstrdecoder","owner":"thombashi","description":"Python library for multi-byte character string decoder.","archived":false,"fork":false,"pushed_at":"2025-01-18T10:06:23.000Z","size":148,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-27T08:02:34.124Z","etag":null,"topics":["decoder","multi-byte-string","python-library"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thombashi.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-12-10T04:34:39.000Z","updated_at":"2025-01-18T10:04:42.000Z","dependencies_parsed_at":"2023-02-18T23:30:59.214Z","dependency_job_id":null,"html_url":"https://github.com/thombashi/mbstrdecoder","commit_stats":{"total_commits":271,"total_committers":4,"mean_commits":67.75,"dds":"0.15867158671586712","last_synced_commit":"03c96dbdbd320798e0b45c226395ad9e9079c382"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fmbstrdecoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fmbstrdecoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fmbstrdecoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fmbstrdecoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thombashi","download_url":"https://codeload.github.com/thombashi/mbstrdecoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252961835,"owners_count":21832190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decoder","multi-byte-string","python-library"],"created_at":"2024-10-03T20:10:18.379Z","updated_at":"2025-05-07T21:44:13.623Z","avatar_url":"https://github.com/thombashi.png","language":"Python","readme":".. contents:: **mbstrdecoder**\n   :backlinks: top\n   :local:\n\n\nSummary\n=======\n`mbstrdecoder \u003chttps://github.com/thombashi/mbstrdecoder\u003e`__ is a Python library for multi-byte character string decoder.\n\n\n.. image:: https://badge.fury.io/py/mbstrdecoder.svg\n    :target: https://badge.fury.io/py/mbstrdecoder\n    :alt: PyPI package version\n\n.. image:: https://img.shields.io/pypi/pyversions/mbstrdecoder.svg\n   :target: https://pypi.org/project/mbstrdecoder\n    :alt: Supported Python versions\n\n.. image:: https://img.shields.io/pypi/implementation/mbstrdecoder.svg\n    :target: https://pypi.org/project/mbstrdecoder\n    :alt: Supported Python implementations\n\n.. image:: https://github.com/thombashi/mbstrdecoder/actions/workflows/ci.yml/badge.svg\n    :target: https://github.com/thombashi/mbstrdecoder/actions/workflows/ci.yml\n    :alt: CI status of Linux/macOS/Windows\n\n.. image:: https://coveralls.io/repos/github/thombashi/mbstrdecoder/badge.svg?branch=master\n    :target: https://coveralls.io/github/thombashi/mbstrdecoder?branch=master\n    :alt: Test coverage\n\n.. image:: https://github.com/thombashi/mbstrdecoder/actions/workflows/github-code-scanning/codeql/badge.svg\n    :target: https://github.com/thombashi/mbstrdecoder/actions/workflows/github-code-scanning/codeql\n    :alt: CodeQL\n\n\nInstallation\n============\n\nInstall from PyPI\n------------------------------\n::\n\n    pip install mbstrdecoder\n\nInstall from PPA (for Ubuntu)\n------------------------------\n::\n\n    sudo add-apt-repository ppa:thombashi/ppa\n    sudo apt update\n    sudo apt install python3-mbstrdecoder\n\n\nUsage\n=====\n\n:Sample Code:\n    .. code:: python\n\n        from mbstrdecoder import MultiByteStrDecoder\n\n        encoded_multibyte_text = \"マルチバイト文字\".encode(\"utf-8\")\n        decoder = MultiByteStrDecoder(encoded_multibyte_text)\n\n        print(\"encoded bytes: {}\".format(encoded_multibyte_text))\n        print(\"unicode: {}\".format(decoder.unicode_str))\n        print(\"codec: {}\".format(decoder.codec))\n\n:Output:\n    ::\n\n        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'\n        unicode: マルチバイト文字\n        codec: utf_8\n\n\nDependencies\n============\n- Python 3.9+\n- `Python package dependencies (automatically installed) \u003chttps://github.com/thombashi/mbstrdecoder/network/dependencies\u003e`__\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthombashi%2Fmbstrdecoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthombashi%2Fmbstrdecoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthombashi%2Fmbstrdecoder/lists"}