Python JSON encoder for handling Numpy data types.
Project description
numpyencoder
Custom Python JSON encoder for handling Numpy data types.
Example Use:
from numpyencoder import NumpyEncoder
numpy_data = np.array([0, 1, 2, 3])
with open(json_file, 'w') as file:
json.dump(numpy_data, file, indent=4, sort_keys=True,
separators=(', ', ': '), ensure_ascii=False,
cls=NumpyEncoder)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
numpyencoder-0.1.0.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for numpyencoder-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eddafa873d1629650f6675452d9c219d07efee7e6f87213c51458f07038f5593 |
|
MD5 | 6aed4e5770815ef429aeda9b723647b9 |
|
BLAKE2b-256 | 7833f71253959a83ba5cbb53ef8668349a37dae8447975a8627faf401bff65e8 |