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 details)
Built Distribution
File details
Details for the file numpyencoder-0.2.0.tar.gz
.
File metadata
- Download URL: numpyencoder-0.2.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 803920a04bf2b934c3bca2fdf4c6618345d88d82f20a54dc668a296739351adf |
|
MD5 | 065781c62fb06187bf4a5512b91ad45f |
|
BLAKE2b-256 | ef9f587b26258b047fed069f7428159ea560bb59de3df0bbcc4651ac1067b646 |
Provenance
File details
Details for the file numpyencoder-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: numpyencoder-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef5e7589b730ea9dff37b9fbc117e4c188cc2884c9e56688820939a147a7903a |
|
MD5 | e5ebdbfd7a01f5ff9b8f29e704a7e3e0 |
|
BLAKE2b-256 | c664c5defc006ff7244ca5a37cc0e049b3d4f40c1d9bc6dc5f0d631a3439baef |