Skip to main content
2025 Python Packaging Survey is now live!  Take the survey now

Experimental backport of the pickle 5 protocol (PEP 574)

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

This package backports the features and APIs added in PEP 574. It should work with Python 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

Supported by

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