Skip to content

numpy-serializer is a nice and high-level way to serialize numpy.arrays while preserving their shape and type.

License

Notifications You must be signed in to change notification settings

4thel00z/numpy-serializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numpy-serializer

numpy-serializer Logo

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

import numpy_serializer as ns import numpy as np a = 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.

About

numpy-serializer is a nice and high-level way to serialize numpy.arrays while preserving their shape and type.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published