Metadata-Version: 2.4
Name: pyhurray
Version: 0.1.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: maturin>=1.7 ; extra == 'dev'
Requires-Dist: pytest>=8.0 ; extra == 'dev'
Requires-Dist: numpy>=1.24 ; extra == 'dev'
Requires-Dist: numpy>=1.24 ; extra == 'numpy'
Requires-Dist: scipy>=1.10 ; extra == 'scipy'
Requires-Dist: torch>=2.0 ; extra == 'torch'
Provides-Extra: dev
Provides-Extra: numpy
Provides-Extra: scipy
Provides-Extra: torch
Summary: Python bindings for the Hurray tensor interchange format
License: MIT OR Apache-2.0
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# hurray-python

Python bindings for the [Hurray](https://github.com/pgillet/hurray) tensor interchange format.

Built with [PyO3](https://pyo3.rs) and [maturin](https://www.maturin.rs).

## Quick start

The distribution is `pyhurray`; the module is `hurray`.

```bash
pip install pyhurray
```

To build from this checkout instead:

```bash
pip install maturin
maturin develop
```

```python
import hurray

t = hurray.zeros((3, 4), dtype=hurray.float32)
print(t.shape, t.dtype)

hurray.save("model.hrry", {"weights": t})
loaded = hurray.load("model.hrry")
```

See the project [README](../README.md) for the full documentation.

