--- id: cloudpickle version: "3.1.2" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # cloudpickle — Pickler class to extend the standard pickle.Pickler functionality License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install cloudpickle uv add cloudpickle poetry add cloudpickle ## Description # cloudpickle [![Automated Tests](https://github.com/cloudpipe/cloudpickle/workflows/Automated%20Tests/badge.svg?branch=master&event=push)](https://github.com/cloudpipe/cloudpickle/actions) [![codecov.io](https://codecov.io/github/cloudpipe/cloudpickle/coverage.svg?branch=master)](https://codecov.io/github/cloudpipe/cloudpickle?branch=master) `cloudpickle` makes it possible to serialize Python constructs not supported by the default `pickle` module from the Python standard library. `cloudpickle` is especially useful for **cluster computing** where Python code is shipped over the network to execute on remote hosts, possibly close to the data. Among other things, `cloudpickle` supports pickling for **lambda functions** along with **functions and classes defined interactively** in the `__main__` module (for instance in a script, a shell or a Jupyter notebook). Cloudpickle can only be used to send objects between the **exact same version of Python**. Using `cloudpickle` for **long-term object storage is not supported and strongly discouraged.** **Security notice**: one should **only load pickle data from trusted sources** as otherwise `pickle.load` can lead to arbitrary code... ## AI interpretation — verify before relying Serializes Python objects—including lambda functions, locally-defined functions, and classes—that the standard pickle module cannot handle, enabling code and data to be shipped across networks for distributed computing. Verdict: Mature, well-maintained library (Production/Stable, 1935 GitHub stars, active repo) with zero known vulnerabilities and no dependencies. Essential for distributed computing workflows that need to serialize dynamic Python code. The security notice about only loading from trusted sources applies to all pickle usage, not a cloudpickle-specific issue. [View on SkillFed](https://skillfed.io/packages/cloudpickle) · [View on PyPI](https://pypi.org/project/cloudpickle/)