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 details)
Built Distribution
File details
Details for the file numpyencoder-0.1.0.tar.gz
.
File metadata
- Download URL: numpyencoder-0.1.0.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c171e2718d51d1d193b6b13c3928a36b96c37dc41e2a7540c981fd7a457f271 |
|
MD5 | ce9cf9a8357c0997332b49f93ebd55cf |
|
BLAKE2b-256 | cea5400470b4e8f8ba4f9d2f7345ab256021e7751353708fcf793758a400b64f |
File details
Details for the file numpyencoder-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: numpyencoder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eddafa873d1629650f6675452d9c219d07efee7e6f87213c51458f07038f5593 |
|
MD5 | 6aed4e5770815ef429aeda9b723647b9 |
|
BLAKE2b-256 | 7833f71253959a83ba5cbb53ef8668349a37dae8447975a8627faf401bff65e8 |