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
)
Installation
pip install numpyencoder==0.3.2
Metadata
Release files for numpyencoder 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| numpyencoder-0.3.2.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| numpyencoder-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / numpyencoder-0.3.2.tar.gz
| Download URL | numpyencoder-0.3.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3107f51b2d90a053fea5e4075b024080c07bfabff0050e070ba8e90241734f16
|
|
BLAKE2b-256 checksum How to use checksums |
c40d266647b8986a9d5ff10bdf50b5d77c90c03038f56132d34d51a59f1bbe56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / numpyencoder-0.3.2-py3-none-any.whl
| Download URL | numpyencoder-0.3.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5935afdbbc237c1b6c23b5c7bc0e77645a0bbd9ed5bbb1eb8449da75909699f
|
|
BLAKE2b-256 checksum How to use checksums |
82ee372a5080e5185bb7ec685040c33be3845418341cb0764c7033f1e1cf02c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|