Skip to main content

Backport of the pickle 5 protocol (PEP 574) and other pickle changes

Project description

This package backports all features and APIs added in the pickle module in Python 3.8.3, including the PEP 574 additions. It should work with Python 3.5, 3.6 and 3.7.

Basic usage is similar to the pickle module, except that the module to be imported is pickle5:

import pickle5 as pickle

pb = pickle.PickleBuffer(b"foo")
data = pickle.dumps(pb, protocol=5)
assert pickle.loads(data) == b"foo"

Detailed documentation can be found in PEP 574 and the standard pickle documentation.

https://travis-ci.org/pitrou/pickle5-backport.svg?branch=master https://ci.appveyor.com/api/projects/status/hk4lrl81wp0q283o/branch/master?svg=true

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

pickle5-0.0.10.tar.gz (133.6 kB view hashes)

Uploaded Source

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