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.3.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

numpyencoder-0.3.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

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

Hashes for numpyencoder-0.3.0.tar.gz
Algorithm Hash digest
SHA256 79da1c662bcdc6260a3944426e1dc38c248a236b9b73faf26a9084f73932f870
MD5 125f24970e24e06ecb2adb7247ca774c
BLAKE2b-256 06bfa3c6633202698abeda5c223525e37732c8a81df15c7dea79773994b27da2

See more details on using hashes here.

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

Hashes for numpyencoder-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3f7cec9b40fc026ec4ea9fc2d0ef69d4f5f171edec8f51b4cf1c5144545495b
MD5 3c7f27488d71091b825657c25fdc7ef7
BLAKE2b-256 3a813bc19741054a7cb4d0f6e2771729bfb6da1e40496943c9c0edd304614f14

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