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 details)
Built Distribution
File details
Details for the file numpyencoder-0.3.0.tar.gz
.
File metadata
- Download URL: numpyencoder-0.3.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.50.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79da1c662bcdc6260a3944426e1dc38c248a236b9b73faf26a9084f73932f870 |
|
MD5 | 125f24970e24e06ecb2adb7247ca774c |
|
BLAKE2b-256 | 06bfa3c6633202698abeda5c223525e37732c8a81df15c7dea79773994b27da2 |
File details
Details for the file numpyencoder-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: numpyencoder-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.50.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3f7cec9b40fc026ec4ea9fc2d0ef69d4f5f171edec8f51b4cf1c5144545495b |
|
MD5 | 3c7f27488d71091b825657c25fdc7ef7 |
|
BLAKE2b-256 | 3a813bc19741054a7cb4d0f6e2771729bfb6da1e40496943c9c0edd304614f14 |