compress or decompress with huffman
Project description
Install from source:
- $ python setup.py build
- $ python setup.py install
Usage:
- 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__':
run_test()
Upload PyPI
- $ python -m pip install --user --upgrade setuptools wheel twine
- $ python setup.py sdist bdist_wheel
- $ python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
Upload TestPyPI
- $ python -m pip install --user --upgrade setuptools wheel twine
- $ python setup.py sdist bdist_wheel
- $ python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- $ python -m pip install --index-url https://test.pypi.org/simple/ --no-deps PycHuffman
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PycHuffman-1.1.0.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PycHuffman-1.1.0.tar.gz.
File metadata
- Download URL: PycHuffman-1.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccca1a5590ec07096c35800fe40f6aec11b65ca4acbdee6fe1756f542940c5c3
|
|
| MD5 |
cb777e105bf1200c066fd7421508deb1
|
|
| BLAKE2b-256 |
63183a2a5623bdeb0fe8f9f81c6663c768c71ff993b0f588dc336ffce65f8508
|
File details
Details for the file PycHuffman-1.1.0-cp37-cp37m-win32.whl.
File metadata
- Download URL: PycHuffman-1.1.0-cp37-cp37m-win32.whl
- Upload date:
- Size: 8.9 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c39e9fc91fe0ba9f6bd95f4e126e76844f59900504e1fcccbb1fee28a30b134
|
|
| MD5 |
7e1d40be685a2ee410c9fe8cb0167cfb
|
|
| BLAKE2b-256 |
bb608017edd91db9a183189cb8c8276c351b8a8abc074b5cff025c878e7445ae
|