Metadata-Version: 2.4
Name: quantize-py
Version: 0.2.2
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering
Requires-Dist: numpy>=1.24
License-File: LICENSE
Summary: Python bindings for the quantize crate.
Keywords: quantization,machine-learning,numpy
Author: Akshey Deokule
License: MIT
Requires-Python: >=3.12
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://docs.rs/quantize
Project-URL: Homepage, https://pypi.org/project/quantize-py/
Project-URL: Repository, https://github.com/aksheyd/quantize

# Python

```bash
pip install quantize-py
```

```python
from quantize import Scale, quantize

weights = [0.42, -0.10, 0.70, -0.50]
q = quantize(weights, bits=8, block=32, scale=Scale.F32)
back = q.dequantize()
```

From this repository:

```bash
just setup
just python
```

