--- id: dill version: "0.4.1" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # dill — serialize all of Python License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install dill uv add dill poetry add dill ## Description ----------------------------- dill: serialize all of Python ----------------------------- About Dill ========== ``dill`` extends Python's ``pickle`` module for serializing and de-serializing Python objects to the majority of the built-in Python types. Serialization is the process of converting an object to a byte stream, and the inverse of which is converting a byte stream back to a Python object hierarchy. ``dill`` provides the user the same interface as the ``pickle`` module, and also includes some additional features. In addition to pickling Python objects, ``dill`` provides the ability to save the state of an interpreter session in a single command. Hence, it would be feasible to save an interpreter session, close the interpreter, ship the pickled file to another computer, open a new interpreter, unpickle the session and thus continue from the 'saved' state of the original interpreter session. ``dill`` can be used to store Python objects to a file, but the primary usage is to send Python objects across the network as a byte stream. ``dill`` is quite flexible, and allows arbitrary user defined classes and functions to be serialized. Thus ``dill`` is not intended to... ## AI interpretation — verify before relying dill extends Python's pickle module to serialize and deserialize a broader range of Python objects, including functions, lambdas, classes, and interpreter sessions, enabling object persistence and network transmission. Verdict: dill is a mature, actively maintained serialization library with no known vulnerabilities, zero runtime dependencies, and permissive licensing. It is well-suited for projects needing to pickle functions, lambdas, and complex Python objects beyond pickle's standard scope. [View on SkillFed](https://skillfed.io/packages/dill) · [View on PyPI](https://pypi.org/project/dill/)