{"id":37074859,"url":"https://github.com/moreati/lzma-cf","last_synced_at":"2026-01-14T08:48:52.870Z","repository":{"id":317886801,"uuid":"1069201996","full_name":"moreati/lzma-cf","owner":"moreati","description":"Python LZMA and XZ compression for control freaks","archived":false,"fork":false,"pushed_at":"2025-10-13T10:55:55.000Z","size":34,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-13T13:34:52.637Z","etag":null,"topics":["cffi","compression","lzma","xz","xz-utils"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/lzma-cf","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/moreati.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSES/BSD-3-Clause.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-03T14:59:33.000Z","updated_at":"2025-10-09T11:02:55.000Z","dependencies_parsed_at":"2025-10-03T18:32:34.404Z","dependency_job_id":"445a737b-e4b1-4801-9960-dbb356626b41","html_url":"https://github.com/moreati/lzma-cf","commit_stats":null,"previous_names":["moreati/lzma-cf"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/moreati/lzma-cf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreati%2Flzma-cf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreati%2Flzma-cf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreati%2Flzma-cf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreati%2Flzma-cf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moreati","download_url":"https://codeload.github.com/moreati/lzma-cf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreati%2Flzma-cf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414693,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","compression","lzma","xz","xz-utils"],"created_at":"2026-01-14T08:48:52.340Z","updated_at":"2026-01-14T08:48:52.861Z","avatar_url":"https://github.com/moreati.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lzma-cf\n\nA Python LZMA \u0026 XZ library with greater control over compression parameters.\n\nIn addition to CPython's stdlib [`lzma`][CPython-lzma], lzma-cf can\n\n- Compress and decompress XZ files in multithreaded mode\n\n\n## Usage\n\n```pycon\n\u003e\u003e\u003e import lzma_cf\n\u003e\u003e\u003e uncompressed = b'qwertyuiopasdfghjklzxcvbnm1234567890' * 10_000_000\n\u003e\u003e\u003e compressed_singlethreaded = lzma_cf.compress(uncompressed)\n\u003e\u003e\u003e compressed_multithreaded = lzma_cf.compress(uncompressed, threads=0)\n\u003e\u003e\u003e compressed_singlethreaded == compressed_multithreaded\nFalse\n\u003e\u003e\u003e uncompressed == lzma_cf.decompress(compressed_singlethreaded)\nTrue\n\u003e\u003e\u003e uncompressed == lzma_cf.decompress(compressed_multithreaded)\nTrue\n```\n\n```console\n$ python -mtimeit -s \"import lzma_cf\" -s \"s=b'qwertyuiopasdfghjklzxcvbnm1234567890' * 10_000_000\"  \"lzma_cf.compress(s)\"\n1 loop, best of 5: 3.74 sec per loop\n$ python -mtimeit -s \"import lzma_cf\" -s \"s=b'qwertyuiopasdfghjklzxcvbnm1234567890' * 10_000_000\" \"lzma_cf.compress(s, threads=0)\"\n1 loop, best of 5: 685 msec per loop\n```\n\n\n## Installation\n\n```\npip install lzma-cf\n```\n\nor\n\n```\nuv pip install lzma-cf\n```\n\n\n## License\n\n\u003c!-- SPDX-FileCopyrightText: 2025 Alex Willmer \u003calex@moreati.org.uk\u003e --\u003e\n\u003c!-- SPDX-License-Identifier: MIT --\u003e\n\nBSD-3-Clause AND MIT AND PSF-2.0\n\n\n## History\n\nlzma-cf is derived from code that has passed through multiple projects by\nmultiple authors\n\n1. [CPython] 3.3.0 added `lzma` to the stdlib in `_lzmamodule.c` \u0026 `lzma.py`\n1. [backports.lzma] repackaged CPython C-API code \u0026 adapted it\n1. [lzmaffi] forked backports.lzma \u0026 changed C-API bindings to [CFFI] bindings\n1. [PyPy] incorporated lzmaffi code into their stdlib \u0026 updated it\n1. lzma-cf (this project) uses PyPy code and builds on it\n\n[backports.lzma]: http://pypi.python.org/pypi/backports.lzma/\n[CFFI]: https://pypi.org/project/cffi/\n[CPython]: https://python.org\n[CPython-lzma]: https://docs.python.org/3/library/lzma.html\n[lzmaffi]: http://pypi.python.org/pypi/lzmaffi/\n[PyPy]: https://pypy.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoreati%2Flzma-cf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoreati%2Flzma-cf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoreati%2Flzma-cf/lists"}