Skip to main content

compress or decompress with huffman

Project description

Install from source:

  • $ python build
  • $ python install


  • compress & decompress:
    python example:
#-*- coding:utf-8 -*-
import PycHuffman as huffman

def run_test():
    file_in = 'original_file.jpg'
    file_out = 'compressed_file.hum.bin'
    file_out_out = 'decompressed_file.hum.jpg'
    rtn = huffman.compress(file_in, file_out)
    print('compress return:', rtn)
    rtn = huffman.decompress(file_out, file_out_out)
    print('decompress return:', rtn)

if __name__ == '__main__':

Upload PyPI

  • $ python -m pip install --user --upgrade setuptools wheel twine
  • $ python sdist bdist_wheel
  • $ python -m twine upload --repository-url dist/*

Upload TestPyPI

Project details

Download files

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

Files for PycHuffman, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size PycHuffman-1.1.0.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View
Filename, size PycHuffman-1.1.0-cp37-cp37m-win32.whl (8.9 kB) File type Wheel Python version cp37 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page