compression for very small strings
Project description
✨ 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
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-smaz-0.1.0.tar.gz
(116.0 kB
view hashes)
Built Distributions
Close
Hashes for python_smaz-0.1.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a757a9e431888c5321f3c14e4dcbc1a9c23344e310518f5aba268583479f977 |
|
MD5 | 004d35fed265e9ec332ad66696888a35 |
|
BLAKE2b-256 | 07b7f8622a7f6e07c48e96ce1ea82688de002b20c8256e9a39e1edf3ccfb71f9 |
Close
Hashes for python_smaz-0.1.0-pp38-pypy38_pp73-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86ac0ef7c969ed915e62c921f0b8a6e2cf36ceda95386d0bd91b80917ffe4029 |
|
MD5 | 383e2d901d15da172644cdf982da550e |
|
BLAKE2b-256 | 13d2913dbdbe1cedcc2a0193e47fafdf0e8d9ed62843dcf6a46aa44f1555232b |
Close
Hashes for python_smaz-0.1.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cee4646a0f192e5fb0872bd55814475bbcde9fcc73d3941acc92ea1dd2c94b99 |
|
MD5 | 73fe1bae3b3c0e8f4528eff860a8a7da |
|
BLAKE2b-256 | 935e61c960cd535e473f5fe38e11e6178f8bfaa5e791ee61bc2aa0e67b4e56dd |
Close
Hashes for python_smaz-0.1.0-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fdfbf1eaf2300f6a78029cfd38e2c23daa5916ec6de2cbf1b0b68142650681f |
|
MD5 | c4410300003b3c3f24fdb3269d771a8c |
|
BLAKE2b-256 | 9902daed5de68b2d6fdf3700a899f2a7c497dd8b10f95fa4a3ca63ed4629fdc0 |
Close
Hashes for python_smaz-0.1.0-pp37-pypy37_pp73-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a18008eea9b28c34598976ab163ac98d692dc273f1544f03ce882a4294b0b176 |
|
MD5 | c17d6d7b07ca8b9a3969e73aff5bbdbd |
|
BLAKE2b-256 | 2add2a460ac9cc0cab03b1d31ed4002bbc0b478a079338397080da4770cd7acb |
Close
Hashes for python_smaz-0.1.0-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b7b68d4d0477502877b06c5de50d80b7c150d38871656edc7aa87c00fc28eaa |
|
MD5 | 22ed449f647bd865c188c29085815add |
|
BLAKE2b-256 | 1600e44766edcea55e002fe1af45cfb4b748e17937db4191ecb824ac561831ae |
Close
Hashes for python_smaz-0.1.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b464f800fc7b24d9f174da26054747692157bebadb2411dabc9fe7b4582e3628 |
|
MD5 | 3b19e162477592f5a1205abdbacac955 |
|
BLAKE2b-256 | 9e7d2e8345910ec9b6099c6d9bfc1e378a6b50aaa20a12d80d9dd44073bf140c |
Close
Hashes for python_smaz-0.1.0-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21442a672a58801496a81b1e03884607cfb5af3a01eefaedf02cafce9d97367d |
|
MD5 | 233c78722baf4a904ebd04040fcf4438 |
|
BLAKE2b-256 | dd087429fdfa46abdf2ff2c531351f7af0cb63542ba23bca8b1d0cf239b4c546 |
Close
Hashes for python_smaz-0.1.0-cp310-cp310-macosx_10_15_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a609fbe687c9b15aba68a2b7334db4218942a75503370f45b95dd090fd81d9fe |
|
MD5 | 214fefea9ad5f88d73df89efb2099b59 |
|
BLAKE2b-256 | 8dfb73f93765b1ef7298e6ede719a2d741b089ce908e19daa0bcb7811bc8eb37 |
Close
Hashes for python_smaz-0.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdced216bd83ca27aea6f23126b4100daab716bcc8fa6936f8a81328968e33de |
|
MD5 | dcaae2316c76c3dd73dd98218fbb9f28 |
|
BLAKE2b-256 | 04a77e8b094809395e7f2a2f9342176467da736185050b3c11db23e18638180a |
Close
Hashes for python_smaz-0.1.0-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9dfe4e5e551d252e3474f1cc080601a5823bb9488b61387919cdb7b542e0c79 |
|
MD5 | 8ad616bea5a297042cf1228f9336d395 |
|
BLAKE2b-256 | 04b81dc25996f11206daf709e70b8a4318d46feb28605619efb9963048bfa2cf |
Close
Hashes for python_smaz-0.1.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea39aae8a81a47ff776fd61d897044e559049f90b15d950b300c559a0ce24a9f |
|
MD5 | 28a37e185376d210e5d06fc343627bc2 |
|
BLAKE2b-256 | 2ed4e67dbba8cd4afe5904681d6352ac885cfa72d715b978204d2ad724858968 |
Close
Hashes for python_smaz-0.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ec227c19cbe115e9a572ea53e2b737047c1f69f6edc2287b58fff867f86570 |
|
MD5 | a77f508b972cf987d1c8ce5dcfe00188 |
|
BLAKE2b-256 | be1bf26de646c7f6a59919415025110f94fa097f82829c3ed0a28ff9997b64af |
Close
Hashes for python_smaz-0.1.0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 773fa15108b8fdcedcabe983026760d303fdbb53929ad8b9a15d3412a3914282 |
|
MD5 | 0e15e6676220c695d802d3ed37bfee2d |
|
BLAKE2b-256 | af55594ce228db34999ed6e0bfd8cbc1a41b37d410ea3c426772b31d05f0fbea |
Close
Hashes for python_smaz-0.1.0-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9447a2882f68511175bd67050561997066015f65c7f021c8a58d193778152fe |
|
MD5 | e10c0137a86a8a6e56fa9d17b8f55fc9 |
|
BLAKE2b-256 | 69fec71da015b07adbe8643c10695d83ec02fcb9beffdff50177fcb7a66bdad3 |
Close
Hashes for python_smaz-0.1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c41841cdf0cba6eb6e32e1b385cf78496039a931bc57234208507ab130638691 |
|
MD5 | bfe96c4e59fd2605b77f5bd8c644de85 |
|
BLAKE2b-256 | b5aec9ebd2aba3d8164f6c567e8d5809f5caa5bd7ada513418d4597007ef35e3 |
Close
Hashes for python_smaz-0.1.0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac9b9523ce7567c89732ff10f42c979e43ce41d8de4f9a2dec0271428be899a |
|
MD5 | d2fb4a566c46bba4c170520a197956f7 |
|
BLAKE2b-256 | 7c7efb3bf22535f630a568420858ca8809210abc7e21e6b2699308710545521e |
Close
Hashes for python_smaz-0.1.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e98ed4e7b2b76be6fef1a429f1c47b0c91e8aea1b8b6ad506eeb3f3df649b0b |
|
MD5 | 6fa37ffb89cd0502f53a9ef0eb3427c0 |
|
BLAKE2b-256 | ff8b2b30925d298f059245ab156c2d421ad249935e2730ca3c7aec9b4e19ceb6 |
Close
Hashes for python_smaz-0.1.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7377bdd87bb667e072c8c0ae6bf7807b33029ba536ff72df98db55be3bd37d18 |
|
MD5 | 034c2de262539060bc91796ae1f75058 |
|
BLAKE2b-256 | af8e00ea611e475eea7dfaa956426792b5571df1d6efd74e3621af1b53c00504 |
Close
Hashes for python_smaz-0.1.0-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab465af39e231c46f06207e1b64953c0b0d786c7752d516c74c6b7fc24891cc1 |
|
MD5 | 3f0eca87950e7959e876437f4edc2378 |
|
BLAKE2b-256 | cf430193c0ec6a19e8b8170beafa7c0d8e1cd466af7d760a0b647855d329f1b0 |
Close
Hashes for python_smaz-0.1.0-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 544b93f381fa5e7200c9ef110a02ae53b4093c2359a6cfad86ce2106bd68eb1e |
|
MD5 | da9c27fbbf9009bbe694eb98877d5182 |
|
BLAKE2b-256 | fc867d5ed18df774c31eb6c6501ddf45ca7128e5b6d263be495fbcc0ac53f401 |