Skip to main content

Compressor CLI Documentation

Overview

The Compressor CLI is a command-line interface for compressing and decompressing files using various algorithms. Currently, it supports Huffman Coding and LZW (Lempel-Ziv-Welch) algorithms. This tool is designed to be easy to use for both beginners and experienced users.

Commands

1. Compression (cmp)

Compresses the specified file using the chosen algorithm.

Usage:

zipper cmp [OPTIONS] PATH

Arguments:

  • PATH: The path of the file to be compressed. This argument is required.

Options:

  • --algorithm, -a: The algorithm to be used for compression. Supported values are huff for Huffman Coding and lzw for Lempel-Ziv-Welch. This option is required.

Example:

zipper cmp -a lzw /path/to/file

2. Decompression (ucmp)

Decompresses the specified file.

Usage:

zipper ucmp [OPTIONS] PATH

Arguments:

  • PATH: The path of the file to be decompressed. The file must have a .lzw or .huff extension. This argument is required.

Options:

  • --output, -o: The path of the output file or directory. If not specified, the decompressed file will be placed in the same directory as the input file.

Example:

zipper ucmp /path/to/file.lzw -o /path/to/output

Handling Errors

The CLI is designed to handle errors gracefully. If an error occurs during compression or decompression, the CLI will display an error message. Additionally, users have the option to automatically generate an issue link with the error details, which can be sent to the developers for further assistance.

Example:

Would you like to send issue? [y/N]: y

Contributing

Contributions to the Compressor CLI are welcome. Please refer to the project's CONTRIBUTING guide for more details on how to contribute.

License

The Compressor CLI is licensed under the MIT License. See the LICENSE file for more details.

Metadata

Release files for compresslib 0.1.2

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

Source distribution (sdist)

Source distribution for compresslib 0.1.2
File Size Uploaded Provenance
compresslib-0.1.2.tar.gz 17.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 27.8 kB

Release files / compresslib-0.1.2.tar.gz

Download URL compresslib-0.1.2.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
86a9289033d7850f9105f313f44ee7d0a29c970cae30e7ed8536c57214d27ffe
BLAKE2b-256 checksum
How to use checksums
c8561852743cce97998e07d2f0f1d6a90f0e48fbbdb19a5d9a0b0d97b26e6c00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Windows/11

Release files / compresslib-0.1.2-py3-none-any.whl

Download URL compresslib-0.1.2-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60d0f58feeb79a64e9c8cc8152d653c1bf3343086d0bc94bcd352b58d54978d9
BLAKE2b-256 checksum
How to use checksums
9238408498cf3072389509fee3a31c8be2299274d19592ac0bf9b3e9bfdb5d7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Windows/11

Security for compresslib 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

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