semvec/pypi-packages huggingface dataset:
lz4inv 0.2.0
A Rust-backed Python module for decompressing data compressed with the modified LZ4 algorithm for an anime game.
License: MIT
Requires Python: >=3.9
Keywords: lz4, lz4inv, compression, decompression

# Lz4Inv

Lz4Inv is a Rust-backed Python module for decompressing data compressed with the modified LZ4 algorithm for an anime game. It leverages [PyO3](https://pyo3.rs/) to provide a high-performance decompression function directly from Python.

## Installation

### Prerequisites

- Rust (edition 2021)
- Python (version 3.9 or higher)
- [maturin](https://github.com/PyO3/maturin) for building the extension module

### Build and Install

1. Clone the repository:

   ```powershell
   git clone https://github.com/MooncellWiki/lz4inv.git
   cd lz4inv
   ```

2. Build the module using maturin:

   ```powershell
   maturin develop --release
   ```

3. Install the package (if not using `maturin develop`):

   ```powershell
   pip install .
   ```

## Usage

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.

```python
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.

```python
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)
```

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Acknowledgments

- [PyO3](https://github.com/PyO3/pyo3) for making Python/Rust interop simple.
- The LZ4 compression library for inspiration.
jupyter-cpp-kernel 1.0.0a9
C++ kernel for Jupyter
License: MIT
Requires Python: >=3.9
Keywords: windows, macos, linux, jupyter, cpp, jupyter-kernels, pip

> ℹ️
> * For C/C++ header add-on development, [try this template](https://github.com/shiroinekotfs/jupyter-cpp-header-template)
> * [Security issue with Jupyter Notebooks](https://github.com/shiroinekotfs/jupyter-cpp-kernel/discussions/20)
> * [Track `jupyter-cpp-kernel` on PePY](https://www.pepy.tech/projects/jupyter-cpp-kernel)

[![CodeQL](https://github.com/shiroinekotfs/jupyter-cpp-kernel/actions/workflows/codeql.yml/badge.svg)](https://github.com/shiroinekotfs/jupyter-cpp-kernel/actions/workflows/codeql.yml)

![GitHub repo size](https://img.shields.io/github/repo-size/shiroinekotfs/jupyter-cpp-kernel)
![GitHub Repo stars](https://img.shields.io/github/stars/shiroinekotfs/jupyter-cpp-kernel)
[![Total Downloads](https://static.pepy.tech/badge/jupyter-cpp-kernel)](https://pepy.tech/project/jupyter-cpp-kernel)
[![Downloads](https://static.pepy.tech/badge/jupyter-cpp-kernel/month)](https://pepy.tech/project/jupyter-cpp-kernel)

# C++ (General) kernel for Jupyter

## Installation

> :warning:
>
> If you want to use it on Windows, please install the [GNU Compiler Collection for Windows](https://github.com/shiroinekotfs/jupyter-cpp-kernel/blob/master/INSTALL_ON_WINDOWS.md)

Normally, your target machine must meet these requirement packages before installing and using `jupyter-cpp-kernel`.

* `g++`
* `python3`, `python3-pip`
* `jupyter` (recommend `jupyterlab`)

### Install from PyPI

> :warning:
>
> For Windows User: Please follow [this instruction](https://github.com/shiroinekotfs/jupyter-cpp-kernel/blob/master/INSTALL_ON_WINDOWS.md) to install GCC properly.

```shell
pip install jupyter-cpp-kernel
```

### Install from the GitHub repo


> :warning:
>
> For Windows User: Please follow [this instruction](https://github.com/shiroinekotfs/jupyter-cpp-kernel/blob/master/INSTALL_ON_WINDOWS.md) to install GCC properly.

```shell
pip install git+https://github.com/shiroinekotfs/jupyter-cpp-kernel.git
```

## Contributing

You can clone, create a fork, or import this repo whenever possible.

Please follow the GitHub standards and the license

## Guides (notebook)

<p align="center">
    <b>See more at </b><a href="https://github.com/shiroinekotfs/jupyter-cpp-kernel-doc">here</a>
    <br><br>
    <img src="https://github.com/shiroinekotfs/jupyter-cpp-kernel/assets/115929530/201d3f51-fa4c-44d4-bc2b-4ea2a252f13c" />
</p>