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.

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.12.tar.gz (132.1 kB view hashes)

Uploaded source

Built Distributions

pickle5-0.0.12-cp37-cp37m-win_amd64.whl (124.7 kB view hashes)

Uploaded cp37

pickle5-0.0.12-cp37-cp37m-win32.whl (115.7 kB view hashes)

Uploaded cp37

pickle5-0.0.12-cp36-cp36m-win_amd64.whl (124.6 kB view hashes)

Uploaded cp36

pickle5-0.0.12-cp36-cp36m-win32.whl (116.0 kB view hashes)

Uploaded cp36

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page