{"id":15030131,"url":"https://github.com/gsllchb/handright","last_synced_at":"2026-10-19T08:48:14.845Z","repository":{"id":38776242,"uuid":"110765710","full_name":"Gsllchb/Handright","owner":"Gsllchb","description":"A lightweight Python library for simulating Chinese handwriting","archived":true,"fork":false,"pushed_at":"2024-04-06T03:02:03.000Z","size":41773,"stargazers_count":2243,"open_issues_count":7,"forks_count":261,"subscribers_count":16,"default_branch":"master","last_synced_at":"2026-09-24T08:22:51.473Z","etag":null,"topics":["chinese","handwriting","image","library","lightweight","simulation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gsllchb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":".github/CODE_OF_CONDUCT.md","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}},"created_at":"2017-11-15T01:13:14.000Z","updated_at":"2026-09-17T17:21:16.000Z","dependencies_parsed_at":"2023-02-14T15:15:57.950Z","dependency_job_id":"47cf7179-402b-4862-9b85-44f0959a3a82","html_url":"https://github.com/Gsllchb/Handright","commit_stats":{"total_commits":851,"total_committers":6,"mean_commits":"141.83333333333334","dds":0.4900117508813161,"last_synced_commit":"7a52cb0ee8f3d333ab754dd94c0f2d8c3e364b75"},"previous_names":["gsllchb/pylf"],"tags_count":49,"template":true,"template_full_name":null,"purl":"pkg:github/Gsllchb/Handright","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gsllchb%2FHandright","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gsllchb%2FHandright/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gsllchb%2FHandright/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gsllchb%2FHandright/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gsllchb","download_url":"https://codeload.github.com/Gsllchb/Handright/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gsllchb%2FHandright/sbom","scorecard":{"id":59630,"data":{"date":"2025-08-11","repo":{"name":"github.com/Gsllchb/Handright","commit":"7a52cb0ee8f3d333ab754dd94c0f2d8c3e364b75"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/24 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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test_pillow_version.yml:1","Warn: no topLevel permission defined: .github/workflows/test_python_version.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":"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":"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/test_pillow_version.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/Gsllchb/Handright/test_pillow_version.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_pillow_version.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/Gsllchb/Handright/test_pillow_version.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_python_version.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/Gsllchb/Handright/test_python_version.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_python_version.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/Gsllchb/Handright/test_python_version.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/test_pillow_version.yml:21","Warn: pipCommand not pinned by hash: .github/workflows/test_pillow_version.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/test_pillow_version.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/test_pillow_version.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/test_python_version.yml:21","Warn: pipCommand not pinned by hash: .github/workflows/test_python_version.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/test_python_version.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/test_python_version.yml:24","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   8 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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE.txt: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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 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"}},{"name":"Vulnerabilities","score":0,"reason":"15 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-3f63-hfp8-52jq","Warn: Project is vulnerable to: GHSA-44wm-f244-xhp3","Warn: Project is vulnerable to: GHSA-4fx9-vc88-q2xc","Warn: Project is vulnerable to: PYSEC-2023-227 / GHSA-8ghj-p4vj-mr35","Warn: Project is vulnerable to: PYSEC-2022-10 / GHSA-8vj2-vxx3-667w","Warn: Project is vulnerable to: PYSEC-2022-168 / GHSA-9j59-75qj-795w","Warn: Project is vulnerable to: GHSA-j7hp-h8jx-5ppr","Warn: Project is vulnerable to: PYSEC-2022-42979 / GHSA-m2vv-5vj5-2hm7","Warn: Project is vulnerable to: PYSEC-2022-8 / GHSA-pw3c-h7wp-cvhx","Warn: Project is vulnerable to: PYSEC-2022-9 / GHSA-xrcv-f9gm-v42c","Warn: Project is vulnerable to: PYSEC-2023-175","Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-cx63-2mw6-8hw5","Warn: Project is vulnerable to: PYSEC-2022-43012 / GHSA-r9hx-vwmv-q579","Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T01:26:29.567Z","repository_id":38776242,"created_at":"2025-08-15T01:26:29.567Z","updated_at":"2025-08-15T01:26:29.567Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38352851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-19T02:00:06.414Z","response_time":53,"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":["chinese","handwriting","image","library","lightweight","simulation"],"created_at":"2024-09-24T20:12:32.035Z","updated_at":"2026-10-19T08:48:14.274Z","avatar_url":"https://github.com/Gsllchb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Handright\n___A lightweight Python library for simulating Chinese handwriting___\n\n[![released version](https://img.shields.io/pypi/v/Handright.svg)][pypi]\n[![python version](https://img.shields.io/pypi/pyversions/Handright.svg)][pypi]\n[![license](https://img.shields.io/github/license/Gsllchb/Handright.svg)][license]\n\n[Tutorial][tutorial] |\n[Release Notes][release-notes] |\n[Contributing][contributing]\n\n![](docs/images/slogan.png)\n\n## Vision\nReveal the nature of Chinese handwriting and use it to implement beautiful, simple and easy-to-use interfaces.\n\n## Algorithm\n首先，在水平位置、竖直位置和字体大小三个自由度上，对每个字的整体做随机扰动。随后，在水平位置、竖直位置和旋转角度三个自由度上，对每个字的每个笔画做随机扰动。\n\n## Installation\n```console\npip install handright\n```\n\n## Quick Start\n```python\n# coding: utf-8\nfrom PIL import Image, ImageFont\n\nfrom handright import Template, handwrite\n\ntext = \"我能吞下玻璃而不伤身体。\"\ntemplate = Template(\n    background=Image.new(mode=\"1\", size=(1024, 2048), color=1),\n    font=ImageFont.truetype(\"path/to/my/font.ttf\", size=100),\n)\nimages = handwrite(text, template)\nfor im in images:\n    assert isinstance(im, Image.Image)\n    im.show()\n\n```\n更多信息请参阅[Tutorial][tutorial]。\n\n\n[tutorial]: docs/tutorial.md\n[PIL]: http://www.pythonware.com/products/pil/\n[Pillow]: http://python-pillow.org/\n[release-notes]: docs/release_notes.md\n[pypi]: https://pypi.org/project/handright/\n[license]: LICENSE.txt\n[contributing]: .github/CONTRIBUTING.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsllchb%2Fhandright","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsllchb%2Fhandright","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsllchb%2Fhandright/lists"}