Skip to main content

unlzw3

ci PyPi Download stats

Pure Python decompression module for .Z files compressed using Unix compress utility. Unlike the faster but Linux-specific 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 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.

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
  • modernization, test / CI and PyPi: Michael Hirsch

Metadata

Release files for unlzw3 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unlzw3 0.2.3
File Size Uploaded Provenance
unlzw3-0.2.3.tar.gz 5.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for unlzw3 0.2.3
File Interpreter ABI Platform
unlzw3-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / unlzw3-0.2.3.tar.gz

Download URL unlzw3-0.2.3.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ede5d928c792fff9da406f20334f9739693327f448f383ae1df1774627197bbb
BLAKE2b-256 checksum
How to use checksums
08f172b313366285263aaba21a17714fbef597d7662a8737a928b2b4784eb46e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 20, 2024.

Transparency log

Release files / unlzw3-0.2.3-py3-none-any.whl

Download URL unlzw3-0.2.3-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7760fb4f3afa1225623944c061991d89a061f7fb78665dbc4cddfdb562bb4a8b
BLAKE2b-256 checksum
How to use checksums
4dfb617af9b317ac75f5663285d3a3cc38903a76d63c6e7397768307545f4ff4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 20, 2024.

Transparency log

Security for unlzw3 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for unlzw3-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 20, 2024.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page