Skip to main content

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)

Source distribution for numpyencoder 0.3.2
File Size Uploaded
numpyencoder-0.3.2.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for numpyencoder 0.3.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page