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.0rc1.tar.gz
(115.8 kB
view hashes)
Built Distributions
Close
Hashes for python_smaz-0.1.0rc1-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4455f27993ddfd351f216142d4a7baed5b82d378ac8b7205f2ef24479b378185 |
|
MD5 | 9efe6a07e9902dae3ce93b7c6912ff81 |
|
BLAKE2b-256 | c70cf236c7a1962d3392ff223d9691a3eef74b17b2e30a88e16f288b5ec8be49 |
Close
Hashes for python_smaz-0.1.0rc1-pp38-pypy38_pp73-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c10f41a8f9d0c8d87c9dfbd18c626161e6efd79cdc12191142459f5241657631 |
|
MD5 | 6c2459b78034b84e7c6f8bad52bac1ab |
|
BLAKE2b-256 | e0df0fe10a908b202f7923220d7fe939a67d490002cbdb83d7833e779e128a59 |
Close
Hashes for python_smaz-0.1.0rc1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16cd8df2afeb32fd445c2d6d9edb1535dc4044fd7b60dfa24c52f63380a22f69 |
|
MD5 | 38e4c54fc89cfbdde2f67ecb90d5bf12 |
|
BLAKE2b-256 | e04a92926c19a91aa68f971a9d7a63d6d01ab5235733cb0b7b4e1dee0f3e20e8 |
Close
Hashes for python_smaz-0.1.0rc1-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b75d454c4291aa31c5dc05d62d7fcd914515520305df30ebe4dad5734b8b951 |
|
MD5 | 464a20f123c5cdde4bf19d974b78ba01 |
|
BLAKE2b-256 | 080e7c2634c76db2b78d52a58b87d3f545df2a2dc7e16528d74a3c7acb28ca05 |
Close
Hashes for python_smaz-0.1.0rc1-pp37-pypy37_pp73-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2e32c4ca5a78a30b41304aac065614c82e955a1869caa6cd23d6a34d297250b |
|
MD5 | 3271b5e80c2e11b0b88442ea9ba6cc27 |
|
BLAKE2b-256 | 26ed9d6783f5da66bd613cd92d7b44cff78fd433cc3084f4bb87713426d87257 |
Close
Hashes for python_smaz-0.1.0rc1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 648c4983f119edec7bf2af1538d22405786e227d77692013e8dc328699048dc4 |
|
MD5 | 7bc78a92e222356f4a0eaf5b0ae2cf5a |
|
BLAKE2b-256 | 872fcce85a64e101274852d1798e41ba55ed17fd27ba6c1271412b024f47aa9b |
Close
Hashes for python_smaz-0.1.0rc1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4d5ab83932fa16f2387812fcb3b3c9fdf7cd1ffe2efd22d3f789bface693ecb |
|
MD5 | 67247b32594bde4add2f5444655eb637 |
|
BLAKE2b-256 | 6f95a1e6a9decabbe05329efde5768908972e1d44dc71e7d9fa4ad6b9ea5dedb |
Close
Hashes for python_smaz-0.1.0rc1-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ef192b1c82e86581a2edb84fd0c9da61c0b8e0cac8542666ea0fa08282c6010 |
|
MD5 | f04e8fdcdbdce2d2ae3c047b7b3a51f2 |
|
BLAKE2b-256 | ed29ddec691312081195c35ab3592d038cd4001a200587e984f7318195d5c93d |
Close
Hashes for python_smaz-0.1.0rc1-cp310-cp310-macosx_10_15_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03f7434ee5b432d38a2095c102f3dcd8c9c89f1e7644efa49e4283597d4897d7 |
|
MD5 | 0266d309d567ee17f259364c0a067e44 |
|
BLAKE2b-256 | 6e55ee262c0d08acf5a8ddba9de9140a313dbd5fb3491265e177a02933532abe |
Close
Hashes for python_smaz-0.1.0rc1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f1a5e621839ae534b24bb0e38bcb2d50df279d4134a882c7c5154f061445f39 |
|
MD5 | bcb1298244f023e7ab68818beea1d08d |
|
BLAKE2b-256 | 6317ee7b29308fecdac1a5625a0182a6cc0dceff3f9460ef4bb45b55082ca0c6 |
Close
Hashes for python_smaz-0.1.0rc1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c7f977f62dea032df118bc6323e05932018cbf66433282daec061784ba3865 |
|
MD5 | 98c3430db9bbbe21e747fc214cee0ee8 |
|
BLAKE2b-256 | 7d36519cc86fe40627db93191a069ade68d1d43eff54c6fefe47df3c0e570ff2 |
Close
Hashes for python_smaz-0.1.0rc1-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e21cead37819e73652402e60eecaa415020e9da500879af51099d2ef567e0a2c |
|
MD5 | 29d15d1fc326a6c4bc6a752ac7daad7b |
|
BLAKE2b-256 | b44eb57e946faa17d3b8630330b0543f037854421c81beb71cbf30854e477a6f |
Close
Hashes for python_smaz-0.1.0rc1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce435b06bbc1a52b9e90b1dd421a02739a2c03f0c2fd49569a40e52c8e0d1493 |
|
MD5 | ea137bf20c42f70b297bb871a3e38b7b |
|
BLAKE2b-256 | ffb28988af3fcdcb940b4b50038b81b69cce7d8026f38966ec96ed8662a02691 |
Close
Hashes for python_smaz-0.1.0rc1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d578a7a80e53ff447aeea45e92b8d477a41a79bdb320348b03b5ae890fa4e402 |
|
MD5 | 43179cc2f03d83a39b7bb05a4f9c4509 |
|
BLAKE2b-256 | fe9c3909df19f5f0005e0264650fb894e8540149bda93fbae929d4937381bc1f |
Close
Hashes for python_smaz-0.1.0rc1-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3fcd4f36686d07c9a671afdc270a99c020b1a4e65066e4fe8974a624212a8f3 |
|
MD5 | 81785e434c39f3cf15cf24fd488180b1 |
|
BLAKE2b-256 | fc8575ade6b58ba0018df6c454f49f06a6f3354023b63e43d582b6a7825e478b |
Close
Hashes for python_smaz-0.1.0rc1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab47f2a4556ce0dd229486870362d7efbd19efcf32c0fe7d7dc2fc54a4bd9a8b |
|
MD5 | 7c90b7b23fc18605d17ca90ae1754560 |
|
BLAKE2b-256 | bd40a1377b837ca6b03b3e13ad13abc73f4d92c7e5ae3ad69ed9ac26efe4c4ce |
Close
Hashes for python_smaz-0.1.0rc1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2cf015f00d1138517d24f942627f5db74c6a2cc3354adf1577885f20f10fb88 |
|
MD5 | b967a8fa83159db4c3a81dbe4170f2cb |
|
BLAKE2b-256 | 28b45322cc0450d78eeb89661f68f0e4fd25881e29a4b49f2ed92bb8a9384767 |
Close
Hashes for python_smaz-0.1.0rc1-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0ebbf656bc6b79e18bf8a52b71dc2923e1ebaa9e49aff4de5d558de3d72668d |
|
MD5 | dbcb7ccc9762fc1e96b8746c1f155f1a |
|
BLAKE2b-256 | 79a7af98d01f97617043d633796f2bf32bd7eb513b1427e5c3012a104fd20bd3 |
Close
Hashes for python_smaz-0.1.0rc1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b76d05e60bf4f2cfe6da9e481c362a2db9ad63578a62219d002d4a2ef82ae2b8 |
|
MD5 | 71c890f94fe1169a1203942a8111a74d |
|
BLAKE2b-256 | f0c95c9539c9d20bb02e65e0c9ebb6dd0e84075958fce6bf9fe8b9c1802b968c |
Close
Hashes for python_smaz-0.1.0rc1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5a9258a0b5cf226cc0086759dcf472ec1433dfb730688aecb1aa71aec2b8aa8 |
|
MD5 | e3e9a73e39387553176058892a78b9a9 |
|
BLAKE2b-256 | 30020033286238d4fc16e4accf26789cb7bf38c7f6bb1d9e4f2721294ecf546d |
Close
Hashes for python_smaz-0.1.0rc1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08849578784973798c9a86f659fc028ddca7cb967eb693db4cd4c99e381d0323 |
|
MD5 | 058255153627875fd2d245f319d63565 |
|
BLAKE2b-256 | 12ed80dfae948ba2340d599bdf8a70703f8c2f57215ce1aacca2448c115b5965 |