huffman encode and decode
Project description
✨ pyhuffman ✨
The python binding for huffman
公开函数
from typing import IO, Union
from pathlib import Path
InputType = Union[str, bytes, Path, IO]
def ensure_bytes(file) -> bytes: ...
def encode_file(in_: InputType, out_: InputType) -> int: ...
def decode_file(in_: InputType, out_: InputType) -> int: ...
def encode(data: bytes) -> bytes: ...
def decode(data: bytes) -> bytes: ...
环境变量
HFM_USE_CFFI
强制使用cffi后端
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
python-huffman-0.1.0.dev1.tar.gz
(197.2 kB
view hashes)
Close
Hashes for python-huffman-0.1.0.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d50d7358dc939e206d6e88b24c72a722e568bc6250e772e4779c82080c804ce |
|
MD5 | 6ab0a26a2decbdbd5e0f8a5b458a34ea |
|
BLAKE2b-256 | b86b82f002b86ebb9e4c1a57c100482bcc2713df1e6501cd5c4a92609a3055da |