LibLZF is a very small data compression library
Project description
✨ pylzf ✨
The python binding for liblzf
安装
pip install pylzf
使用
import pylzf
pylzf.compress(b"123", 100)
pylzf.decompress(b"xxx", 100)
data = bytearray(1000)
pylzf.compress_into(b"1212", data)
pylzf.decompress_into(b"xxxx", data)
公开函数
def compress(data: bytes, outlen: int = ...) -> bytes: ...
def decompress(data: bytes, outlen: int) -> bytes: ...
def compress_into(data: bytes, out: bytearray) -> int: ...
def decompress_into(data: bytes, out: bytearray) -> int: ...
本机编译
python -m pip install setuptools wheel cython cffi
git clone https://github.com/synodriver/pylzf
cd pylzf
git submodule update --init --recursive
python setup.py bdist_wheel --use-cython --use-cffi
后端选择
默认由py实现决定,在cpython上自动选择cython后端,在pypy上自动选择cffi后端,使用LZF_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
pylzf-0.1.0.dev1.tar.gz
(168.8 kB
view hashes)
Built Distributions
Close
Hashes for pylzf-0.1.0.dev1-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89cdb6c1a02e4386b84250133854913df47095ba7333017a832f61848f23d068 |
|
MD5 | 168140c70e8dd5f63f94dd8949cc9765 |
|
BLAKE2b-256 | 9625945859d881500db7c3ec0872b9d83ac7578364eff0099163998eae34187f |
Close
Hashes for pylzf-0.1.0.dev1-pp38-pypy38_pp73-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 354a134c23ca061f2322e1505ca1480ece2711fe3c32774e22dd5b2869e349ae |
|
MD5 | 171e179ea9c4e2b0c167a7eab8e16f0c |
|
BLAKE2b-256 | 93045f1bc196ba209b7563ec162721752f1c618d601fec62717ed03fab086e4b |
Close
Hashes for pylzf-0.1.0.dev1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b20554e2b47ba8bc1f8dcdcbbb514fd8c911dec1e697c4a51d3ac86954e04eb |
|
MD5 | 5c0223641c3991b95416745b1222ff25 |
|
BLAKE2b-256 | c2d3c8a08952dabe00c3b6a29d55cbdf0db52efe19a85438e7a69a17719422d2 |
Close
Hashes for pylzf-0.1.0.dev1-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6a2624d7ab3b01caa5652de8a77c10fd5d0d109ba9ab2230f293eb685e8fc0a |
|
MD5 | c764b7f278c3b03b974beac9345802bd |
|
BLAKE2b-256 | 69bf7b02470c3bd6ef1efafc2345139faf2529d10f9d2dbcab35a37ad7e54730 |
Close
Hashes for pylzf-0.1.0.dev1-pp37-pypy37_pp73-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 322bb3365a9bd1d838ba44cfdc1d9382d38edaa4ea9da9bc09966067b910e558 |
|
MD5 | 71a4b3854dd8ad8ce6d72fb77d21bd4b |
|
BLAKE2b-256 | 4835cf22c5617dba752a2d22b9905f9017737b337941f049c1ea80b92d4546c4 |
Close
Hashes for pylzf-0.1.0.dev1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cbe095726ddba730851cdcb412703b49fd110a5330a8930a764f22ec5f54344 |
|
MD5 | e028ebfdf1732f41a28bb8ec7b490a81 |
|
BLAKE2b-256 | 40acf6019be7d636b28d0700566a8d48374a454fe469fc4349f667e9a4c5343b |
Close
Hashes for pylzf-0.1.0.dev1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aec49de86ba67df93ce71cbffc87f1455d9a2251b840e4494205d229b94510d7 |
|
MD5 | 6b554350cf6025fda0436387994250d2 |
|
BLAKE2b-256 | 4feeaa6026f29f57920da139d632d6de11369347cda0e83f3dafc67511f5bfb2 |
Close
Hashes for pylzf-0.1.0.dev1-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 773ed583aac75182090b789293de9e2f2c04686db1a9410c7542bbebfe586aae |
|
MD5 | 3163e705d6a1677689b4a14fca374294 |
|
BLAKE2b-256 | 297b075718c95c85cc06a55e5f19be51aee78b1c9fe5171ebfc9da38165dd37e |
Close
Hashes for pylzf-0.1.0.dev1-cp310-cp310-macosx_10_15_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3982cb12e5690c6a6cc9b7fff079c8c149f662de5e11ee5a3fa225276957f78 |
|
MD5 | f5145d751c3e2d3cfa5cb32dfc95a97e |
|
BLAKE2b-256 | f2de7c714509e495db8ce5d237204d0dceba7bcbe9146ebb0d0fd7368d153a62 |
Close
Hashes for pylzf-0.1.0.dev1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32c8bcc0ca21035324bb26842776478368781304f4b7a91d0c8fa01291aaeabb |
|
MD5 | 71fd4a4580b08e961612a6d56811a175 |
|
BLAKE2b-256 | 67ebcd5a444dd4d50a1cbc08e9f308ede1ebd846805829b524f0a13684cea745 |
Close
Hashes for pylzf-0.1.0.dev1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 915b6e8b159a982b657c4a96612f6ea271537e7ce009b7cd127e2595e81ec734 |
|
MD5 | b4bb93ab51a1acb9468d563403fa3773 |
|
BLAKE2b-256 | e498b4f28299f4b57df6944dd3bd1c9e5de1bfd5dbce268018d29d66822c2ca0 |
Close
Hashes for pylzf-0.1.0.dev1-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4676930dcf439774b563a71635507fc151d6915ae5fb704f7c41171892dd857 |
|
MD5 | 83b19d4d9e04668bb13a21c295c45c0c |
|
BLAKE2b-256 | 6533bfa4245f590573dc545bfd8b4ac12548646c5e755bc1f2f4a076806701cf |
Close
Hashes for pylzf-0.1.0.dev1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a09436b93a2a99ad3a33140a3e27837e1367bb8a1176eca2ee04256f39d91e45 |
|
MD5 | 115648db61765bd3c600045ecf8fd9e8 |
|
BLAKE2b-256 | bed940d53e339db83d0baecb8b4f93125c8655e78b02392280f4a13d00df3425 |
Close
Hashes for pylzf-0.1.0.dev1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5067aebeb6dbec610f69f371adf157ccbcbec4adb05b7f70d03839e62a771e7 |
|
MD5 | ac60deba16d6fa36ec6fb851e4521a6e |
|
BLAKE2b-256 | 7eaedab3090f3358f47184acedd7a41cb59673aa70cc2e5d3f4cf3c34d7a2a31 |
Close
Hashes for pylzf-0.1.0.dev1-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e27e112c49ca9c94c7a7f009d6b7338bdbbfb0bd20cde2658039471df2541aed |
|
MD5 | febb889d625dc46107822a730239b341 |
|
BLAKE2b-256 | 103fefd584531296b78fae1135b0c51093b922d69a4d7242c8a8c932d2cca56e |
Close
Hashes for pylzf-0.1.0.dev1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a54308f2890ca611fcaae9267d150027e4e3775463414f8d28e49970c3b179ab |
|
MD5 | 895c4ca0b74896c7b1f09d7425f482cf |
|
BLAKE2b-256 | b96e38e3c6cffd03c7a71c4429979fc056a95868042527fe1dc2f3f238891ef1 |
Close
Hashes for pylzf-0.1.0.dev1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35e98c38d35f8a27c958294ec20d3485e8a03ed553105c9a8ee113230b9984aa |
|
MD5 | bc110aa9a4a192e1e52462d754aea76e |
|
BLAKE2b-256 | a6250fb04ee2079873b4e56daa2df26f3378b32f83cc91dd8cc3c155ea2897ee |
Close
Hashes for pylzf-0.1.0.dev1-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d1836b40038495b677fd7558bb61c48c90ef5408d0ec2545cfd5188f3e85ba7 |
|
MD5 | 43821a2215045d21746bffd792c77cf8 |
|
BLAKE2b-256 | 77d3e8f891561d652beda55737389760207b55e6942aa2dafb3fb5c95812732e |
Close
Hashes for pylzf-0.1.0.dev1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da0b6d9de45143211d8dc81b5a72f0816ff4c4203702dc52927b50f7b31dde2f |
|
MD5 | 13fd36ddb8e4f68268181c135b1a78dc |
|
BLAKE2b-256 | 225e90d97f4f925a1051869dbaf0371bfb1811137e0ef202ab999a0b6ede5b1e |
Close
Hashes for pylzf-0.1.0.dev1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01fb34c52836e98b7d80ea87ed18cea9f5a340b4082ad4ffb0531247483b409c |
|
MD5 | d81d1aace47278ed59262e5566de0003 |
|
BLAKE2b-256 | de4e8c8f2f17e882296ed66bfb8eab2f58ba15110948056cb6d7159a81417b6c |
Close
Hashes for pylzf-0.1.0.dev1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 908c29140b9d581513d41a7fc7d2dc4cd8957a2a5cac35035e2986a00773803d |
|
MD5 | f48fdeb7eb61c029e80aef7f7188c124 |
|
BLAKE2b-256 | 0402cdaa150813b7ec42f586f63574212b38313df70d69e7b4cd2ac0016563b6 |