{"id":50853640,"url":"https://github.com/dholth/fzstdpy","last_synced_at":"2026-06-14T16:38:32.877Z","repository":{"id":359255967,"uuid":"1243800633","full_name":"dholth/fzstdpy","owner":"dholth","description":"Zstandard decompression in pure Python","archived":false,"fork":false,"pushed_at":"2026-05-19T17:22:26.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-21T09:46:23.048Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dholth.png","metadata":{"files":{"readme":"README.md","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,"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":"2026-05-19T17:16:23.000Z","updated_at":"2026-05-19T17:18:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dholth/fzstdpy","commit_stats":null,"previous_names":["dholth/fzstdpy"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dholth/fzstdpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dholth%2Ffzstdpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dholth%2Ffzstdpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dholth%2Ffzstdpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dholth%2Ffzstdpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dholth","download_url":"https://codeload.github.com/dholth/fzstdpy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dholth%2Ffzstdpy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34328115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"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":"2026-06-14T16:38:32.211Z","updated_at":"2026-06-14T16:38:32.873Z","avatar_url":"https://github.com/dholth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fzstd - Python Edition\n\nA Python translation of the high-performance Zstandard (de)compression library [fzstd](https://github.com/101arrowz/fzstd).\n\nThis is a pure Python implementation of Zstandard decompression that aims to be compatible with the original TypeScript version.\n\nLLM-driven translation from TypeScript.\n\n## Installation\n\n```bash\npip install fzstd\n```\n\nOr for development:\n\n```bash\npip install -e .\n```\n\n## Usage\n\n### Basic Decompression\n\n```python\nimport fzstd\n\n# Decompress data\ncompressed_data = b'\\x28\\xb5\\x2f\\xfd...'  # zstandard compressed bytes\ndecompressed = fzstd.decompress(bytes(compressed_data))\ntext = decompressed.decode('utf-8')\nprint(text)\n```\n\n### Streaming Decompression\n\nFor decompressing large files or data streams, use the `Decompress` class:\n\n```python\nimport fzstd\n\ndef handle_chunk(chunk: bytes, final: bool) -\u003e None:\n    print(f\"Decompressed {len(chunk)} bytes\")\n    if final:\n        print(\"Decompression complete\")\n\n# Create a decompressor with a handler\ndecompressor = fzstd.Decompress(handle_chunk)\n\n# Push compressed data chunks\ndecompressor.push(chunk1)\ndecompressor.push(chunk2)\ndecompressor.push(final_chunk, final=True)\n```\n\n## Limitations\n\n- Maximum backreference distance: 2^25 bytes (same as TypeScript version)\n- Not compatible with \"ultra\" compression levels (20+) for files \u003e 32MB decompressed\n- And more!\n\n## Testing\n\nRun the test suite:\n\n```bash\npython tests.py\n```\n\n## Origin\n\nThis is a translation of the fzstd TypeScript library by Arjun Barrett ([@101arrowz](https://github.com/101arrowz)).\n\nOriginal repository: https://github.com/101arrowz/fzstd\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdholth%2Ffzstdpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdholth%2Ffzstdpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdholth%2Ffzstdpy/lists"}