https://github.com/4thel00z/numpy-serializer
numpy-serializer is a nice and high-level way to serialize numpy.arrays while preserving their shape and type.
https://github.com/4thel00z/numpy-serializer
bytes deserialization deserialize deserializer msgpack numpy raw serialize serializer serializers
Last synced: 3 months ago
JSON representation
numpy-serializer is a nice and high-level way to serialize numpy.arrays while preserving their shape and type.
- Host: GitHub
- URL: https://github.com/4thel00z/numpy-serializer
- Owner: 4thel00z
- License: gpl-3.0
- Created: 2020-12-24T13:12:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-24T21:24:40.000Z (over 4 years ago)
- Last Synced: 2025-01-27T18:07:06.520Z (4 months ago)
- Topics: bytes, deserialization, deserialize, deserializer, msgpack, numpy, raw, serialize, serializer, serializers
- Language: Python
- Homepage:
- Size: 66.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# numpy-serializer

## Motivation
I couldn't find a nice high-level package that is fast enough to serialize and deserialize numpy arrays while preserving the type
and shape informations.## Installation
```
pip install numpy-serializer
```## How to use
```python3
import numpy_serializer as ns
import numpy as npa = np.random.normal(size=(50,120,150))
b = ns.to_bytes(a)
c = ns.from_bytes(b)
assert np.array_equal(a,c)
```## License
This project is licensed under the GPL-3 license.