qmetrics.net

Dill

Extended Python pickle for broad object serialization

Dill screenshot

Dill extends the standard pickle module to serialize and restore most built-in and user-defined Python types. It can also save and reload an entire interpreter session.

Overview

Dill is a Python package that broadens what you can turn into a byte stream and back again. It keeps the same interface as pickle while handling many types that pickle cannot, including lambdas, nested functions, modules, and code objects.

Beyond one-off object storage, dill can pickle an entire interpreter session so you can close Python, move the file elsewhere, and resume where you left off. A common use is sending Python objects over the network as bytes rather than only writing them to disk.

The library pickles standard scalars, containers, classes, instances, functions, and many descriptor-related types. It documents types it still cannot pickle, such as frames, generators, and tracebacks. Additional tools support saving interpreter sessions, extracting source from callables, and tracing pickling failures for debugging.

Dill is designed as a drop-in replacement: code can import dill as pickle or use dumps and loads directly. Serialization behavior can be tuned with keyword arguments and global settings. It is not meant to safely unpickle untrusted data; users must judge the source. The package is developed as part of the pathos heterogeneous computing framework.

Key features

  • Drop-in pickle interface
  • Serializes lambdas and nested functions
  • Full interpreter session save and load
  • dumps and loads byte-string API
  • Configurable recursion and file-handle modes
  • Source extraction via dill.source
  • Pickle tracing via dill.detect
  • Supports many built-in and user types

Use cases

  • Sending Python objects over the network
  • Checkpointing interpreter state
  • Serializing arbitrary callables and classes
  • Distributed and heterogeneous Python workflows

Similar software

MarkItDown

Python utility converting office and media files to Markdown

MarkItDown converts many file types into Markdown for LLM and text analysis pipelines. It aims to preserve headings, lists, tables, and links rather than perfect human layout.

★ 198.7k⟳ 21 days agoMIT

OpenBB

Open-source data integration platform for analysts, quants and AI agents

Open Data Platform (ODP) by OpenBB connects proprietary, licensed and public data sources once, then exposes them to Python, OpenBB Workspace, Excel, MCP servers for AI agents, and REST APIs.

★ 75.8k⟳ 9 days agoApache-2.0

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

pandas

Python data structures for labeled analysis

pandas is a Python package for working with labeled, tabular, and time-series data. It provides Series and DataFrame objects with alignment, grouping, and rich import and export options.

★ 50.7k⟳ yesterdayBSD-3-Clause

RSSHub

Open RSS feed network with community-maintained routes

RSSHub aggregates content from many online sources into RSS feeds and is maintained as an open source project with a large network of deployed instances.

★ 47.4k⟳ yesterdayAGPL-3.0

jq

Portable command-line JSON processor

jq slices, filters, maps, and transforms JSON from the shell. It is a standalone C binary with no runtime dependencies, plus an online playground and optional Docker image.

★ 36.4k⟳ 26 days agoMIT · open core