Skip to main content

This is a huffman code compressor

Project description

PyHuff

PyPI format

Description

This package allows its users to shrink any ASCII based file using Huffman Code algorithm.


Installing

PyHuff is available in PyPi:

$ pip install pyhuff

Usage

To shrink a file named example.txt:

$ pyhuff example.txt

Two files will be created:

  • example.huff: the encoded file
  • example.tree.huff: the huffman tree used to encode the file

To restore the original file:

$ pyhuff example.huff example.tree.huff decoded_example.txt

In the example above, the decoded file will be created as decoded_example.txt. You can pass any filename as argument. Notice that, if the given file already exists, it will be overwritten.

To get help, simply call:

$ pyhuff

created by Durval Carvalho and Victor Moura

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyhuff-1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pyhuff-1.1-py3-none-any.whl.

File metadata

  • Download URL: pyhuff-1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for pyhuff-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6196023cca9630d83c64107fd5134ef3db9248ac2a9379a5ff1b4acc197090a8
MD5 50f9c453502a829045826971dac9b93b
BLAKE2b-256 875f5e0158a48c4cb140a54711784143a402a374c8017e48e83cfa8894d14ba6

See more details on using hashes here.

Supported by

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