Skip to main content

numpyson

cross py2/py3 python object serializer, currently using and extending jsonpickle to dump/load python objects with a primary focus on numpy/pandas types.

The main purpose of numpyson is to allow dumping under a python3 interpreter and loading under python2 and vice versa. This is a use case that is not covered by current serializers AFAIK.

quick simple API example:

import numpyson
import numpy
s = numpyson.dumps(numpy.array([1,2,3]))
data = numpyjson.loads(s)
assert data.to_list() == [1,2,3]

Currently supported:

  • numpy arrays and some other numpy types

  • pandas.TimeSeries

  • pandas.DataFrame

  • pandas.DateTimeIndex

  • pandas.Int64Index

  • pandas.Float64Index

  • pandas.Index

  • nested python data structures with the above types

0.4

  • fix bug: respect ordering when serializing/deserializing ndarrays

0.3

  • depend on pandas>=0.13.1 because we are using Float64Index which does not exist in pandas-0.12

  • support numpy.float64 and numpy.int64

Metadata

Release files for numpyson 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for numpyson 0.4
File Size Uploaded Provenance Actions
numpyson-0.4.tar.gz 5.9 kB Without provenance Details for numpyson-0.4.tar.gz

Release files / numpyson-0.4.tar.gz

Download URL numpyson-0.4.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f192ee4206bedc5bf71ad02edc0d5bd0cd10a521b4596dafb1cea9528a3888d4
BLAKE2b-256 checksum
How to use checksums
8e72dde1cac188714e734c4b8a7517665c7cc486dc48911cb836fa237cc2e613
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for numpyson 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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