safe LZ4 data compress library.
Project description
Rust binding into python of the lz4 library lz4_flex The Fastest LZ4 implementation in Rust.
Installation
Pip
You can install safelz4 via the pip manager:
pip install safelz4
From source
For the sources, you need Rust
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Make sure it's up to date and using stable channel
rustup update
git clone https://github.com/LVivona/safelz4
cd safelz4
pip install setuptools_rust
# install
pip install -e .
Getting Started
Frame Format
from safelz4 import compress_file, open_frame
buffer = None
with open("dickens.txt", "r") as file:
buffer = file.read(-1).encode("utf-8")
compress_file("dickens.lz4", buffer)
output = None
with open_frame("dickens.lz4") as f:
output = f.decompress()
Block Format
from safelz4.block import compress_prepend_size,
buffer = None
with open("dickens.txt", "r") as file:
input_b = file.read(-1).encode("utf-8")
buffer = compress_prepend_size(input_b)
output = decompress_size_prepended(buffer)
Overview
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file safelz4-0.0.1.dev0.tar.gz.
File metadata
- Download URL: safelz4-0.0.1.dev0.tar.gz
- Upload date:
- Size: 56.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e033b27c28b48d53803f91c36729a7daca86189661ee98a0893e6339e9aaee7
|
|
| MD5 |
578a4c5c182d01e7e610509d4478132e
|
|
| BLAKE2b-256 |
28c424c897d8afc11b79a32b94a27582009ba0c111e3b310e11b690cbd913abf
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 212.2 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9ebc5d4f2ac553580298dbf9be5b3b1f1c739948f3e0c02203ddfe3b810a6e6
|
|
| MD5 |
0db17e878479bd5feb60e3d44c438d28
|
|
| BLAKE2b-256 |
39d68151c4106228f5fe20c769538686f28265a78a3ac3d947cad974b20c6df5
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-win32.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-win32.whl
- Upload date:
- Size: 204.8 kB
- Tags: CPython 3.8+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bead65f5fa13fc678f63e2366763cf78e1a542b15222598dfc841d08b357ba5
|
|
| MD5 |
68b72d9f38d7dc50a49e98909d6ba814
|
|
| BLAKE2b-256 |
f745a1a7afd71da8961a9b6a2192759e726fc5e6c28e9900a1b46c162f6dd219
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 523.5 kB
- Tags: CPython 3.8+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76d3b4e18be3c8ce24f718503a12a4c142f353bfeb2e53c4a07c482067f6de09
|
|
| MD5 |
543701f5a65bdebff446d2094cb9d132
|
|
| BLAKE2b-256 |
77123b6e7e7a96f2fbe70c874de9c51e98877be590ae1ddc4c494efd41cd8e4d
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-musllinux_1_2_i686.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-musllinux_1_2_i686.whl
- Upload date:
- Size: 559.7 kB
- Tags: CPython 3.8+, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5ebc01bd9f01b5917ec56f3fea36bccb081dc316a3eb8c6af74df54c597fcc4
|
|
| MD5 |
82da7cab78837c41a827d8db7f415d21
|
|
| BLAKE2b-256 |
08ddbbba69696aec227592c7f08609a62c553ab18df756397ddfbdb6e87c9898
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-musllinux_1_2_armv7l.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-musllinux_1_2_armv7l.whl
- Upload date:
- Size: 626.8 kB
- Tags: CPython 3.8+, musllinux: musl 1.2+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccc534db073b8fa7a9cdf2875eb1bd34417814756cb60f25b97b79cf0d25d8d4
|
|
| MD5 |
c5253876e1f27d1949ed4c9189915c5a
|
|
| BLAKE2b-256 |
a8237a6bfbbe55f5694cef9a1da71fac371fda2f8abab7d1fdab19a63070a7f1
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 529.8 kB
- Tags: CPython 3.8+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8384bb0a8884c726d6df6b9474c328c596bc740eba242b129c942efe00df0cc
|
|
| MD5 |
e751d7b59d309ec8ca44a2daba6c3196
|
|
| BLAKE2b-256 |
1c6ec9c871261de8f9cee95b4f72cc714ac2c90f749c1b5635785951262367d0
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 352.5 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a9a61a6313df67abe5a8be1388be71f89e01c8c258ec2b24fb28c93066edd7f
|
|
| MD5 |
bbaba9f242ad283f7222cde97dde07b1
|
|
| BLAKE2b-256 |
5e2779b13185a4e1491204b3e53482b331758d705ffc422f732049c0bf6426dd
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 387.4 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87af2fb6b2fcc41e1b0a3cce083cd2d30a4fe3fc3551c7be69e7ac5d9926c7d4
|
|
| MD5 |
1181b0f6eb4b1a101828451af2200a36
|
|
| BLAKE2b-256 |
6ef80045e5f72df15000bc2674100262d6e0643ffaf3a7d3db3c1fe407402135
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 490.4 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7797224d0e28633a27d797cfb9b46df462712705f5c610973b5442f2d7f45a1
|
|
| MD5 |
cea230bab845cb7ce7448a8da3f8aee7
|
|
| BLAKE2b-256 |
44ff490d4c934bbd1567c65e13f8c6d72a922369315b4039461118e02ec088b6
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 364.4 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4c29bac3328c43954617fab83a7d71e97913c1879991b71cd2706c30f16b0d8
|
|
| MD5 |
a3d3c7440b5f9982e0e474b8316c924a
|
|
| BLAKE2b-256 |
18f1767a79bd355483b3e3292db6860302a31f75b21ac391733cece98cc08ca9
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 351.0 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e49cc519db2aa79cf657e6377a51669c661199ce8d2b8d24acac3c38504a599
|
|
| MD5 |
41c4fd7c53cbdebf86a6c6c4729bcb09
|
|
| BLAKE2b-256 |
7b00ebecf1c23facf6e3e0b6dacf172c9f3480796aec8358c4d8ce161513636e
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 385.5 kB
- Tags: CPython 3.8+, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00d518c2fc8d3588145d36a741c0c88670074badae95ade0816265f520955e97
|
|
| MD5 |
dc9c19b386b6df2f3f5efc6589301d1f
|
|
| BLAKE2b-256 |
f9b91c81e4140b3a5cac28d133254405f0616117ef542bed75e9127176c7dfa7
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 318.9 kB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46573847562f356d8134fe7533f7c1c61ce8ee30e45062e824149e7556fc58fb
|
|
| MD5 |
c5230f823f2cb1730ff43c28d6d4ec33
|
|
| BLAKE2b-256 |
eef76ce9805ea6d37dae8e9547733979004aff331978fefa4285795244aaa9f8
|
File details
Details for the file safelz4-0.0.1.dev0-cp38-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: safelz4-0.0.1.dev0-cp38-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 331.3 kB
- Tags: CPython 3.8+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec2391936d4851841f1bc1ff65659b71293b2a056de69bd55ed4c46174500339
|
|
| MD5 |
4d4be75b511924a408082b14e987e21a
|
|
| BLAKE2b-256 |
60aa77196296a3c81c81fa09d588d00e9688e3b1444d51d5dac925b7ddb77e74
|