pyhuffman

High performance huffman encoder/decoder for python

Downloads
1.5K
Stars
2

公开函数

from typing import IO, Union
from pathlib import Path

InputType = Union[str, bytes, Path, IO]

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后端