--- id: tblib version: "3.2.2" license: BSD-2-Clause license_treatment: permissive maintenance: aging --- # tblib — Traceback serialization library. License: permissive · Maintenance: aging · Popularity: top 1,000 on PyPI ## Install pip install tblib uv add tblib poetry add tblib ## Description ======== Overview ======== Serialization library for Exceptions and Tracebacks. * Free software: BSD license It allows you to: * `Pickle `_ tracebacks and raise exceptions with pickled tracebacks in different processes. This allows better error handling when running code over multiple processes (imagine multiprocessing, billiard, futures, celery etc). * Create traceback objects from strings (the ``from_string`` method). *No pickling is used*. * Serialize tracebacks to/from plain dicts (the ``from_dict`` and ``to_dict`` methods). *No pickling is used*. * Raise the tracebacks created from the aforementioned sources. * Pickle an Exception together with its traceback and exception chain (``raise ... from ...``) *(Python 3 only)* **Again, note that using the pickle support is completely optional. You are solely responsible for security problems should you decide to use the pickle support.** Installation ============ :: pip install tblib Documentation ============= .. contents:: :local: Pickling tracebacks ~~~~~~~~~~~~~~~~~~~ **Note**: The traceback objects that come out are stripped of some attributes (like... ## AI interpretation — verify before relying Serializes exceptions and tracebacks to pickle, dicts, or strings, enabling exception handling across multiple processes and preserving full traceback context when exceptions are passed between workers. Verdict: Stable, dependency-free library for cross-process exception handling in distributed systems. No known vulnerabilities, permissive license, and broad Python 3.9+ support make it safe to adopt. Maintenance is aging but the codebase is mature and the repo remains active. [View on SkillFed](https://skillfed.io/packages/tblib) · [View on PyPI](https://pypi.org/project/tblib/)