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.3.0.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for numpyencoder-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3f7cec9b40fc026ec4ea9fc2d0ef69d4f5f171edec8f51b4cf1c5144545495b |
|
MD5 | 3c7f27488d71091b825657c25fdc7ef7 |
|
BLAKE2b-256 | 3a813bc19741054a7cb4d0f6e2771729bfb6da1e40496943c9c0edd304614f14 |