{"id":16713955,"url":"https://github.com/tktech/mutf8","last_synced_at":"2026-03-10T04:33:51.440Z","repository":{"id":47170425,"uuid":"290409940","full_name":"TkTech/mutf8","owner":"TkTech","description":"Pure-python and optional C encoders/decoders for MUTF-8/CESU-8.","archived":false,"fork":false,"pushed_at":"2023-06-27T10:49:45.000Z","size":39,"stargazers_count":12,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-06T02:31:43.031Z","etag":null,"topics":[],"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/TkTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"TkTech","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-08-26T06:04:00.000Z","updated_at":"2025-06-25T18:32:45.000Z","dependencies_parsed_at":"2024-06-21T13:14:34.657Z","dependency_job_id":"1951fb37-e59d-407d-9302-7824bdc4eee8","html_url":"https://github.com/TkTech/mutf8","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"f7e1db2ee1638eb2cff38f4d6658f5c352b71293"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/TkTech/mutf8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TkTech%2Fmutf8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TkTech%2Fmutf8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TkTech%2Fmutf8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TkTech%2Fmutf8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TkTech","download_url":"https://codeload.github.com/TkTech/mutf8/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TkTech%2Fmutf8/sbom","scorecard":{"id":142282,"data":{"date":"2025-08-11","repo":{"name":"github.com/TkTech/mutf8","commit":"f7e1db2ee1638eb2cff38f4d6658f5c352b71293"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/TkTech/mutf8/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/TkTech/mutf8/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/TkTech/mutf8/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/TkTech/mutf8/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/TkTech/mutf8/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:80: update your workflow using https://app.stepsecurity.io/secureworkflow/TkTech/mutf8/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:83: update your workflow using https://app.stepsecurity.io/secureworkflow/TkTech/mutf8/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/TkTech/mutf8/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/TkTech/mutf8/test.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:30","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:31","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:32","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:33","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:63","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:64","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:65","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:89","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:90","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:91","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:34","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:35","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of  12 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENCE:0","Info: FSF or OSI recognized license: MIT License: LICENCE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T08:25:37.300Z","repository_id":47170425,"created_at":"2025-08-16T08:25:37.300Z","updated_at":"2025-08-16T08:25:37.300Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275058117,"owners_count":25398168,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-12T20:48:39.812Z","updated_at":"2026-03-10T04:33:51.390Z","avatar_url":"https://github.com/TkTech.png","language":"Python","funding_links":["https://github.com/sponsors/TkTech"],"categories":[],"sub_categories":[],"readme":"![Tests](https://github.com/TkTech/mutf8/workflows/Tests/badge.svg?branch=master)\n\n# mutf-8\n\nThis package contains simple pure-python as well as C encoders and decoders for\nthe MUTF-8 character encoding. In most cases, you can also parse the even-rarer\nCESU-8.\n\nThese days, you'll most likely encounter MUTF-8 when working on files or\nprotocols related to the JVM. Strings in a Java `.class` file are encoded using\nMUTF-8, strings passed by the JNI, as well as strings exported by the object\nserializer.\n\nThis library was extracted from [Lawu][], a Python library for working with JVM\nclass files.\n\n## 🎉 Installation\n\nInstall the package from PyPi:\n\n```\npip install mutf8\n```\n\nBinary wheels are available for the following:\n\n|                  | py3.6 | py3.7 | py3.8 | py3.9 |\n| ---------------- | ----- | ----- | ----- | ----- |\n| OS X (x86_64)    | y     | y     | y     | y     |\n| Windows (x86_64) | y     | y     | y     | y     |\n| Linux (x86_64)   | y     | y     | y     | y     |\n\nIf binary wheels are not available, it will attempt to build the C extension\nfrom source with any C99 compiler. If it could not build, it will fall back\nto a pure-python version.\n\n## Usage\n\nEncoding and decoding is simple:\n\n```python\nfrom mutf8 import encode_modified_utf8, decode_modified_utf8\n\nunicode = decode_modified_utf8(byte_like_object)\nbytes = encode_modified_utf8(unicode)\n```\n\nThis module *does not* register itself globally as a codec, since importing\nshould be side-effect-free.\n\n## 📈 Benchmarks\n\nThe C extension is significantly faster - often 20x to 40x faster.\n\n\u003c!-- BENCHMARK START --\u003e\n\n### MUTF-8 Decoding\n| Name                         |   Min (μs) |   Max (μs) |   StdDev |           Ops |\n|------------------------------|------------|------------|----------|---------------|\n| cmutf8-decode_modified_utf8  |    0.00009 |    0.00080 |  0.00000 | 9957678.56358 |\n| pymutf8-decode_modified_utf8 |    0.00190 |    0.06040 |  0.00000 |  450455.96019 |\n\n### MUTF-8 Encoding\n| Name                         |   Min (μs) |   Max (μs) |   StdDev |            Ops |\n|------------------------------|------------|------------|----------|----------------|\n| cmutf8-encode_modified_utf8  |    0.00008 |    0.00151 |  0.00000 | 11897361.05101 |\n| pymutf8-encode_modified_utf8 |    0.00180 |    0.16650 |  0.00000 |   474390.98091 |\n\u003c!-- BENCHMARK END --\u003e\n\n## C Extension\n\nThe C extension is optional. If a binary package is not available, or a C\ncompiler is not present, the pure-python version will be used instead. If you\nwant to ensure you're using the C version, import it directly:\n\n```python\nfrom mutf8.cmutf8 import decode_modified_utf8\n\ndecode_modified_utf(b'\\xED\\xA1\\x80\\xED\\xB0\\x80')\n```\n\n[Lawu]: https://github.com/tktech/lawu\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftktech%2Fmutf8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftktech%2Fmutf8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftktech%2Fmutf8/lists"}