{"id":16217237,"url":"https://github.com/synodriver/pylzf","last_synced_at":"2026-02-27T04:05:20.172Z","repository":{"id":41319297,"uuid":"509110359","full_name":"synodriver/pylzf","owner":"synodriver","description":"pyLZF is a very small data compression library","archived":false,"fork":false,"pushed_at":"2023-10-13T15:04:23.000Z","size":228,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T04:36:09.885Z","etag":null,"topics":["cffi","compress","cython","decompress"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/synodriver.png","metadata":{"files":{"readme":"README.markdown","changelog":"changename.py","contributing":null,"funding":null,"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}},"created_at":"2022-06-30T14:19:24.000Z","updated_at":"2022-11-03T02:25:10.000Z","dependencies_parsed_at":"2024-10-27T20:30:52.533Z","dependency_job_id":"6673a098-c694-41e9-8a72-8b263b6f6556","html_url":"https://github.com/synodriver/pylzf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/synodriver/pylzf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fpylzf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fpylzf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fpylzf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fpylzf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synodriver","download_url":"https://codeload.github.com/synodriver/pylzf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fpylzf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29884515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"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":["cffi","compress","cython","decompress"],"created_at":"2024-10-10T11:26:14.236Z","updated_at":"2026-02-27T04:05:20.151Z","avatar_url":"https://github.com/synodriver.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003ci\u003e✨ pylzf ✨ \u003c/i\u003e\u003c/h1\u003e\n\n\u003ch3 align=\"center\"\u003eThe python binding for \u003ca href=\"https://github.com/ProjectHentai/liblzf\"\u003eliblzf\u003c/a\u003e \u003c/h3\u003e\n\n[![pypi](https://img.shields.io/pypi/v/pylzf.svg)](https://pypi.org/project/pylzf/)\n![python](https://img.shields.io/pypi/pyversions/pylzf)\n![implementation](https://img.shields.io/pypi/implementation/pylzf)\n![wheel](https://img.shields.io/pypi/wheel/pylzf)\n![license](https://img.shields.io/github/license/synodriver/pylzf.svg)\n![action](https://img.shields.io/github/workflow/status/synodriver/pylzf/build%20wheel)\n\n### 安装\n```bash\npip install pylzf\n```\n\n\n### 使用\n```python\nimport pylzf\n\npylzf.compress(b\"123\", 100)\npylzf.decompress(b\"xxx\", 100)\ndata = bytearray(1000)\npylzf.compress_into(b\"1212\", data)\npylzf.decompress_into(b\"xxxx\", data)\n```\n\n### 公开函数\n```python\ndef compress(data: bytes, outlen: int = ...) -\u003e bytes: ...\ndef decompress(data: bytes, outlen: int) -\u003e bytes: ...\ndef compress_into(data: bytes, out: bytearray) -\u003e int: ...\ndef decompress_into(data: bytes, out: bytearray) -\u003e int: ...\n```\n\n### 本机编译\n```\npython -m pip install setuptools wheel cython cffi\ngit clone https://github.com/synodriver/pylzf\ncd pylzf\ngit submodule update --init --recursive\npython setup.py bdist_wheel --use-cython --use-cffi\n```\n\n### 后端选择\n默认由py实现决定，在cpython上自动选择cython后端，在pypy上自动选择cffi后端，使用```LZF_USE_CFFI```环境变量可以强制选择cffi","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Fpylzf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynodriver%2Fpylzf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Fpylzf/lists"}