Metadata-Version: 2.4
Name: jzip-zig
Version: 0.0.8
Summary: Python bindings for jzip (Zig) - near-lossless embedding compression
License-Expression: MIT
Keywords: compression,embeddings,zstd,zig
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: System :: Archiving :: Compression
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: third_party/zstd/LICENSE
Requires-Dist: numpy
Dynamic: license-file

# jzip Python Bindings

Python bindings for `jzip` (near-lossless compression for unit-norm embedding vectors).

## Install (dev)

Requires Zig and Python 3.10+.

```bash
pip install -e .
```

## Usage

```python
import numpy as np
import jzip

x = np.random.randn(1000, 384).astype(np.float32)
x /= np.linalg.norm(x, axis=1, keepdims=True)

blob = jzip.compress(x, level=1, threads=8)
y = jzip.decompress(blob, threads=8)
```

## PyPI

```bash
pip install jzip-zig
```
