{"id":18076203,"url":"https://github.com/scivision/unlzw3","last_synced_at":"2025-04-12T08:13:21.860Z","repository":{"id":57477302,"uuid":"239450028","full_name":"scivision/unlzw3","owner":"scivision","description":"Pure Python unlzw to open .Z files on any platform running Python","archived":false,"fork":false,"pushed_at":"2024-12-20T20:23:12.000Z","size":76,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T08:13:15.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/umeat/unlzw","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/scivision.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-10T07:13:24.000Z","updated_at":"2024-12-20T20:23:16.000Z","dependencies_parsed_at":"2023-02-01T17:02:22.765Z","dependency_job_id":null,"html_url":"https://github.com/scivision/unlzw3","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Funlzw3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Funlzw3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Funlzw3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Funlzw3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scivision","download_url":"https://codeload.github.com/scivision/unlzw3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537144,"owners_count":21120711,"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","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-31T11:09:12.894Z","updated_at":"2025-04-12T08:13:21.841Z","avatar_url":"https://github.com/scivision.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unlzw3\n\n[![ci](https://github.com/scivision/unlzw3/actions/workflows/ci.yml/badge.svg)](https://github.com/scivision/unlzw3/actions/workflows/ci.yml)\n[![PyPi Download stats](http://pepy.tech/badge/unlzw3)](http://pepy.tech/project/unlzw3)\n\nPure Python decompression module for .Z files compressed using Unix compress utility.\nUnlike the faster but Linux-specific\n[unlzw](https://pypi.org/project/unlzw/)\nusing Python CFFI, `unlzw3` is slower but works on any platform that runs Python including Windows.\n\nThis is a purely Python adaptation of Mark Adler's\n['unlzw' C function](http://mathematica.stackexchange.com/questions/60531/how-can-i-read-compressed-z-file-automatically-by-mathematica/60879#60879)\non Stackoverflow.\nPython can be much slower than using any compiled utility for the same purpose.\n\n## Usage\n\n`unlzw3.unlzw(data)` takes LZW .Z compressed data as any type which can be converted to a bytearray (generally a string).\nIt returns a UTF-8 decoded string containing the decompressed data.\n\n```python\nimport unlzw3\nfrom pathlib import Path\n\nuncompressed_data = unlzw3.unlzw(Path('file.Z').read_bytes())\n\n# or\n\nuncompressed_data = unlzw3.unlzw(Path('file.Z'))\n```\n\n## Contributions\n\n* reference C code: Mark Adler\n* pure Python implemetation: [Brandon Owen](https://github.com/umeat/unlzw)\n* modernization, test / CI and PyPi: Michael Hirsch\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscivision%2Funlzw3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscivision%2Funlzw3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscivision%2Funlzw3/lists"}