
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
lz4inv
Advanced tools
A Rust-backed Python module for decompressing data compressed with the modified LZ4 algorithm for an anime game.
Lz4Inv is a Rust-backed Python module for decompressing data compressed with the modified LZ4 algorithm for an anime game. It leverages PyO3 to provide a high-performance decompression function directly from Python.
Clone the repository:
git clone https://github.com/MooncellWiki/lz4inv.git
cd lz4inv
Build the module using maturin:
maturin develop --release
Install the package (if not using maturin develop):
pip install .
Import the module in your Python code to decompress LZ4 compressed data.
The function accepts any object implementing Buffer protocol (for example bytes, bytearray, memoryview) as input for the compressed data.
import lz4inv
with open("compressed_data.bin", "rb") as f:
compressed_data = f.read()
decompressed_size = 131072
decompressed_data = lz4inv.decompress_buffer(compressed_data, decompressed_size)
For Python versions before 3.11, use decompress() as the Buffer protocol doesn't have a stable ABI in those versions.
Note that decompress() specifically requires a bytes object as input.
import lz4inv
with open("compressed_data.bin", "rb") as f:
compressed_data = f.read()
decompressed_size = 131072
decompressed_data = lz4inv.decompress(compressed_data, decompressed_size)
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
A Rust-backed Python module for decompressing data compressed with the modified LZ4 algorithm for an anime game.
We found that lz4inv demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.