Name | unlzw3 JSON |
Version |
0.2.2
JSON |
| download |
home_page | |
Summary | Pure Python decompression module for .Z files compressed using Unix compress utility |
upload_time | 2023-01-04 01:06:07 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7 |
license | |
keywords |
lzw
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# unlzw3
[![ci](https://github.com/scivision/unlzw3/actions/workflows/ci.yml/badge.svg)](https://github.com/scivision/unlzw3/actions/workflows/ci.yml)
[![PyPi Download stats](http://pepy.tech/badge/unlzw3)](http://pepy.tech/project/unlzw3)
Pure Python decompression module for .Z files compressed using Unix compress utility.
Unlike the faster but Linux-specific
[unlzw](https://pypi.org/project/unlzw/)
using Python CFFI, `unlzw3` is slower but works on any platform that runs Python including Windows.
This is a purely Python adaptation of Mark Adler's
['unlzw' C function](http://mathematica.stackexchange.com/questions/60531/how-can-i-read-compressed-z-file-automatically-by-mathematica/60879#60879)
on Stackoverflow.
Python can be much slower than using any compiled utility for the same purpose.
## Usage
`unlzw3.unlzw(data)` takes LZW .Z compressed data as any type which can be converted to a bytearray (generally a string).
It returns a UTF-8 decoded string containing the decompressed data.
```python
import unlzw3
from pathlib import Path
uncompressed_data = unlzw3.unlzw(Path('file.Z').read_bytes())
# or
uncompressed_data = unlzw3.unlzw(Path('file.Z'))
```
## Contributions
* reference C code: Mark Adler
* pure Python implemetation: [Brandon Owen](https://github.com/umeat/unlzw)
* modernization, test / CI and PyPi: Michael Hirsch
Raw data
{
"_id": null,
"home_page": "",
"name": "unlzw3",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "Tom Kralidis <tomkralidis@gmail.com>",
"keywords": "lzw",
"author": "",
"author_email": "Brandon Owen <brandon.owen@hotmail.com>",
"download_url": "https://files.pythonhosted.org/packages/f1/d4/cb866f43d87a6b35caef7f8ca51558f531d1efb2742bb2c77be0e8cd9dae/unlzw3-0.2.2.tar.gz",
"platform": null,
"description": "# unlzw3\r\n\r\n[![ci](https://github.com/scivision/unlzw3/actions/workflows/ci.yml/badge.svg)](https://github.com/scivision/unlzw3/actions/workflows/ci.yml)\r\n[![PyPi Download stats](http://pepy.tech/badge/unlzw3)](http://pepy.tech/project/unlzw3)\r\n\r\nPure Python decompression module for .Z files compressed using Unix compress utility.\r\nUnlike the faster but Linux-specific\r\n[unlzw](https://pypi.org/project/unlzw/)\r\nusing Python CFFI, `unlzw3` is slower but works on any platform that runs Python including Windows.\r\n\r\nThis is a purely Python adaptation of Mark Adler's\r\n['unlzw' C function](http://mathematica.stackexchange.com/questions/60531/how-can-i-read-compressed-z-file-automatically-by-mathematica/60879#60879)\r\non Stackoverflow.\r\nPython can be much slower than using any compiled utility for the same purpose.\r\n\r\n## Usage\r\n\r\n`unlzw3.unlzw(data)` takes LZW .Z compressed data as any type which can be converted to a bytearray (generally a string).\r\nIt returns a UTF-8 decoded string containing the decompressed data.\r\n\r\n```python\r\nimport unlzw3\r\nfrom pathlib import Path\r\n\r\nuncompressed_data = unlzw3.unlzw(Path('file.Z').read_bytes())\r\n\r\n# or\r\n\r\nuncompressed_data = unlzw3.unlzw(Path('file.Z'))\r\n```\r\n\r\n## Contributions\r\n\r\n* reference C code: Mark Adler\r\n* pure Python implemetation: [Brandon Owen](https://github.com/umeat/unlzw)\r\n* modernization, test / CI and PyPi: Michael Hirsch\r\n",
"bugtrack_url": null,
"license": "",
"summary": "Pure Python decompression module for .Z files compressed using Unix compress utility",
"version": "0.2.2",
"split_keywords": [
"lzw"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6dfd185cc015344f10173afd8ed8c5b71cd5833e9782edccd31fe258834b9a58",
"md5": "0b0aba78ecb2e124c7dc018f33e236cf",
"sha256": "f2a40fbd2a3c9648745227e5d269a851dbed7802999db4654d358a40a5d61c2f"
},
"downloads": -1,
"filename": "unlzw3-0.2.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0b0aba78ecb2e124c7dc018f33e236cf",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 6137,
"upload_time": "2023-01-04T01:06:06",
"upload_time_iso_8601": "2023-01-04T01:06:06.517475Z",
"url": "https://files.pythonhosted.org/packages/6d/fd/185cc015344f10173afd8ed8c5b71cd5833e9782edccd31fe258834b9a58/unlzw3-0.2.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f1d4cb866f43d87a6b35caef7f8ca51558f531d1efb2742bb2c77be0e8cd9dae",
"md5": "e8612f0e9e505896bc75ab6518dc05da",
"sha256": "d037a9b6823d1a455d6de1e0258af8c0f5dbf40aba3b19cc514448e78da77062"
},
"downloads": -1,
"filename": "unlzw3-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "e8612f0e9e505896bc75ab6518dc05da",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 5377,
"upload_time": "2023-01-04T01:06:07",
"upload_time_iso_8601": "2023-01-04T01:06:07.649298Z",
"url": "https://files.pythonhosted.org/packages/f1/d4/cb866f43d87a6b35caef7f8ca51558f531d1efb2742bb2c77be0e8cd9dae/unlzw3-0.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-04 01:06:07",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "unlzw3"
}