Skip to main content


Usage

from pyhuff import compress
text=b'A'*100
print(text) # b'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
comp=compress(text)
print(comp) # b'\x041\x00A\x010\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

Or use:

pyhuff compress in.txt out.bin
pyhuff decompress out.bin dec.txt

Disadvantages

  1. The code is very messy because of compatibility of Python 2 (And I don't know the six package).
  2. Decompression is very slow.
  3. Not very good, sometimes the compressed file is larger than the original one.

Metadata

Release files for PythonHuff 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PythonHuff 1.0.4
File Size Uploaded
PythonHuff-1.0.4.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PythonHuff 1.0.4
File Interpreter ABI Platform
PythonHuff-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / PythonHuff-1.0.4.tar.gz

Download URL PythonHuff-1.0.4.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
042d7c736569940e481cb4f039e5a1594d144eca35125fb819c2264b408e3117
BLAKE2b-256 checksum
How to use checksums
20fb028dfd7074b0118edcb6fcc40b44b44c67bb0da4d5f0ba1b5efb8ac4df48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.0

Release files / PythonHuff-1.0.4-py3-none-any.whl

Download URL PythonHuff-1.0.4-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
084c99deba558fa393984e33c34af3e9a0f3b16461ac47f21f9645410281195b
BLAKE2b-256 checksum
How to use checksums
2099f8f2dc0deff177e7b04a39e9f265e26ff21c62b15721bd99f9a1b0d3ee39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.0

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page