Skip to main content

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


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)

Uploaded Source

Built Distribution

numpyencoder-0.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file numpyencoder-0.1.0.tar.gz.

File metadata

File hashes

Hashes for numpyencoder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6c171e2718d51d1d193b6b13c3928a36b96c37dc41e2a7540c981fd7a457f271
MD5 ce9cf9a8357c0997332b49f93ebd55cf
BLAKE2b-256 cea5400470b4e8f8ba4f9d2f7345ab256021e7751353708fcf793758a400b64f

See more details on using hashes here.

File details

Details for the file numpyencoder-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for numpyencoder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eddafa873d1629650f6675452d9c219d07efee7e6f87213c51458f07038f5593
MD5 6aed4e5770815ef429aeda9b723647b9
BLAKE2b-256 7833f71253959a83ba5cbb53ef8668349a37dae8447975a8627faf401bff65e8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page