{ "info": { "author": "Rotem Yaari", "author_email": "vmalloc@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 2.7" ], "description": "About\n-----\n*offlinetb* is a small utility module for serializing python tracebacks for later examination. Its simple premise is::\n\n >>> from offlinetb import distill\n >>> try:\n ... some_code()\n ... except:\n ... offline_tb = distill()\n\n**distill** returns a Pythonic data structure describing the exception caught. It holds, among else:\n\n* The exception object caught, its type, value representation, and data members\n* The traceback itself, frame by frame\n* Each frame contains its filename, function name, line number, sample lines before and after, the faulty line itself, and the locals. Each local has its data members, value representation and name distilled.\n\nDistilled tracebacks use only simple datatypes (numbers, strings, lists, dictionaries), guaranteeing their ability to be serialized to other formats (e.g. JSON).\n\nThe original purpose of offlinetb was to display tracebacks caught via a web app, and an example for this usage is included; under the **rendering/** directory you can find a sample Javascript, CSS and HTML that displays a given JSON traceback in a *