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.2.0.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for numpyencoder-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef5e7589b730ea9dff37b9fbc117e4c188cc2884c9e56688820939a147a7903a |
|
MD5 | e5ebdbfd7a01f5ff9b8f29e704a7e3e0 |
|
BLAKE2b-256 | c664c5defc006ff7244ca5a37cc0e049b3d4f40c1d9bc6dc5f0d631a3439baef |