Metadata-Version: 2.4
Name: fleche-numpy
Version: 1.1.0
Summary: numpy digest hooks and destructurers for fleche
Author-email: Marvin Poul <pmrv@posteo.de>
License-Expression: BSD-3-Clause
Project-URL: Homepage, https://github.com/pmrv/fleche
Project-URL: Documentation, https://fleche.readthedocs.io/
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: <3.15,>=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fleche>=0.25.0.dev0
Requires-Dist: numpy>=1.26
Dynamic: license-file

# fleche-numpy

[fleche](https://github.com/pmrv/fleche) digest hooks for numpy: arrays (`np.ndarray` and its subclasses), `np.bool_` and `np.timedelta64`.

```bash
pip install fleche-numpy
```

Installing it is all it takes: fleche finds the hooks through its `fleche` entry point group.
Without it, fleche does not digest these values.
numpy number scalars (`np.float64`, `np.int32`, ...) need no hooks; fleche digests them itself.

With fleche-numpy installed, destructuring value stores take arrays of `dtype=object` apart element by element, like lists, and inline other arrays into their parent entry like scalars.

How arrays are digested — dtype, shape and bytes, per field for structured dtypes, per element for object dtypes — is described in fleche's [numpy documentation](https://fleche.readthedocs.io/en/latest/digests/numpy.html).

This package lives in the fleche repository, under `src/fleche-numpy`, and is versioned and released independently of fleche itself.
