https://github.com/synodriver/pyhuffman
High performance huffman encoder/decoder for python
https://github.com/synodriver/pyhuffman
cffi cython huffman pypy python3
Last synced: 4 months ago
JSON representation
High performance huffman encoder/decoder for python
- Host: GitHub
- URL: https://github.com/synodriver/pyhuffman
- Owner: synodriver
- Created: 2022-07-01T06:05:21.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-13T14:34:08.000Z (over 2 years ago)
- Last Synced: 2025-10-20T13:47:56.774Z (8 months ago)
- Topics: cffi, cython, huffman, pypy, python3
- Language: Python
- Homepage:
- Size: 378 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- Changelog: changename.py
Awesome Lists containing this project
README
✨ pyhuffman ✨
The python binding for huffman
[](https://pypi.org/project/python-huffman/)





### 公开函数
```python
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后端