Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/synodriver/pyhuffman
High performance huffman encoder/decoder for python
https://github.com/synodriver/pyhuffman
cffi cython huffman pypy python3
Last synced: 18 days 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-13T14:34:08.000Z (about 1 year ago)
- Last Synced: 2024-10-11T11:26:08.750Z (about 1 month ago)
- Topics: cffi, cython, huffman, pypy, python3
- Language: Python
- Homepage:
- Size: 378 KB
- Stars: 2
- Watchers: 2
- 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
[![pypi](https://img.shields.io/pypi/v/python-huffman.svg)](https://pypi.org/project/python-huffman/)
![python](https://img.shields.io/pypi/pyversions/python-huffman)
![implementation](https://img.shields.io/pypi/implementation/python-huffman)
![wheel](https://img.shields.io/pypi/wheel/python-huffman)
![license](https://img.shields.io/github/license/synodriver/pyhuffman.svg)
![action](https://img.shields.io/github/workflow/status/synodriver/pyhuffman/build%20wheel)### 公开函数
```python
from typing import IO, Union
from pathlib import PathInputType = 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后端