python-smaz 0.1.2

Last updated:

0 purchases

python-smaz 0.1.2 Image
python-smaz 0.1.2 Images
Add to Cart

Description:

pythonsmaz 0.1.2

✨ Pysmaz ✨
The python binding for smaz






安装
pip install python-smaz

usage
import pysmaz

def compress(data: bytes, output_size: int = ...) -> bytes: ...
def decompress(data: bytes, output_size: int = ...) -> bytes: ...
def compress_into(data: bytes, output: bytearray) -> int: ...
def decompress_into(data: bytes, output: bytearray) -> int: ...

本机编译
python -m pip install setuptools wheel cython cffi
git clone https://github.com/synodriver/pysmaz
cd pysmaz
git submodule update --init --recursive
python setup.py bdist_wheel --use-cython --use-cffi

后端选择
默认由py实现决定,在cpython上自动选择cython后端,在pypy上自动选择cffi后端,使用SMAZ_USE_CFFI环境变量可以强制选择cffi

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.