Metadata-Version: 2.1
Name: PycHuffman
Version: 1.1.0
Summary: compress or decompress with huffman
Home-page: https://github.com/john04047210/pyhuffman.git
Author: QiaoPeng
Author-email: john_04047210@163.com
License: MIT License
Project-URL: Source, https://github.com/john04047210/pyhuffman.git
Platform: UNKNOWN
Classifier: Natural Language :: English
Classifier: Programming Language :: C
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown

# Install from source:
- $ python setup.py build
- $ python setup.py install
----
# Usage:
- compress & decompress:<br>
**python example:**
```python
#-*- 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


