qmetrics.net

cloudpickle

Extended Python pickling for distributed code

cloudpickle serializes Python objects that standard pickle cannot, including lambdas and interactively defined functions and classes. It targets shipping code to remote workers in cluster setups.

Overview

cloudpickle extends the standard library pickle module so more Python constructs can be serialized across processes or networks. It is aimed at distributed and cluster computing where worker nodes must execute code defined elsewhere.

It can pickle lambda functions and functions or classes created interactively in the main module, such as in scripts, shells, or Jupyter notebooks. Unlike pickle’s reference-based serialization, cloudpickle can serialize some constructs by value when modules are not importable on workers.

Since version 2.0.0, register_pickle_by_value and unregister_pickle_by_value let you mark modules that should always serialize by value during development across machines. Objects should only be loaded from trusted sources because unpickling can execute arbitrary code.

cloudpickle is not intended for long-term storage and requires the same Python version on both ends. It grew from picloud.com and work integrated into PySpark before becoming a standalone maintained project.

Key features

  • Pickling lambdas and interactive definitions
  • Serialization by value for select modules
  • register_pickle_by_value API
  • Cluster-friendly remote execution use
  • PyPI installable package

Use cases

  • Shipping functions to cluster workers
  • Serializing notebook-defined callables
  • Distributed Python job execution
  • Spark-adjacent remote Python objects

Similar software

Docling

Document parsing toolkit for generative AI pipelines

Docling ingests PDFs, office files, media, email, and many other formats into a unified document model. It targets downstream RAG and agent workflows with local execution options.

★ 71.1k⟳ yesterdayMIT

Datasets

Hub-backed library for loading and processing AI datasets

A Python library to download public datasets in one line, preprocess local or hub data, and feed NumPy, Pandas, PyTorch, TensorFlow, or JAX workflows with an Apache Arrow backend.

★ 22.2k⟳ todayApache-2.0

Unstructured

Document ingestion and preprocessing for LLM pipelines

Unstructured is a Python library for parsing images and documents into structured elements. It targets PDFs, Office files, HTML, and more for LLM ingestion workflows.

★ 15.8k⟳ 3 days agoApache-2.0

CocoIndex

Incremental Python data framework for AI agent context

CocoIndex is a Python framework that turns codebases, documents, Slack, PDFs, video, and other sources into continuously updated context for AI agents and LLM apps, reprocessing only changed inputs.

★ 11.9k⟳ yesterdayApache-2.0

Kedro

Python framework for reproducible data and ML pipelines

Kedro is an open-source Python framework for modular, maintainable data engineering and data science pipelines, hosted by LF AI & Data.

★ 11.1k⟳ todayApache-2.0

DataDesigner

NeMo orchestration framework for synthetic datasets

NeMo Data Designer builds structured synthetic datasets with samplers, LLMs, validators, and seed data, using your chosen model endpoints.

★ 2.4k⟳ 2 days agoApache-2.0