Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

compresslib-0.1.2.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

compresslib-0.1.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file compresslib-0.1.2.tar.gz.

File metadata

  • Download URL: compresslib-0.1.2.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11

File hashes

Hashes for compresslib-0.1.2.tar.gz
Algorithm Hash digest
SHA256 86a9289033d7850f9105f313f44ee7d0a29c970cae30e7ed8536c57214d27ffe
MD5 d7e01a440c288aa11ae270a750c59c26
BLAKE2b-256 c8561852743cce97998e07d2f0f1d6a90f0e48fbbdb19a5d9a0b0d97b26e6c00

See more details on using hashes here.

File details

Details for the file compresslib-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: compresslib-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11

File hashes

Hashes for compresslib-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60d0f58feeb79a64e9c8cc8152d653c1bf3343086d0bc94bcd352b58d54978d9
MD5 052cc5f5136d2e09de2e7e2d09db15ef
BLAKE2b-256 9238408498cf3072389509fee3a31c8be2299274d19592ac0bf9b3e9bfdb5d7d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page