{ "info": { "author": "Ischium", "author_email": "support@ischium.net", "bugtrack_url": null, "classifiers": [], "description": "XTraceback is an extended Python traceback formatter with support for variable\nexpansion and syntax highlighting.\n\nExamples\n--------\n\nAs a context manager - the stdlib traceback module is monkey patched::\n\n >>> import sys\n >>> import traceback\n >>> import xtraceback\n >>>\n >>> def some_func():\n ... some_var = 2*2\n ... raise Exception(\"exc\")\n >>>\n >>> with xtraceback.StdlibCompat():\n ... try:\n ... some_func()\n ... except:\n ... traceback.print_exc(file=sys.stdout) #doctest: +ELLIPSIS +REPORT_NDIFF\n Traceback (most recent call last):\n File \"\", line 3, in \n 1 with xtraceback.StdlibCompat():\n 2 try:\n --> 3 some_func()\n g:some_func = \n g:sys = \n g:traceback = \n g:xtraceback = \n 4 except:\n 5 traceback.print_exc(file=sys.stdout) #doctest: +ELLIPSIS +REPORT_NDIFF\n File \"\", line 3, in some_func\n 1 def some_func():\n 2 some_var = 2*2\n --> 3 raise Exception(\"exc\")\n some_var = 4\n Exception: exc\n\nAs a sys.excepthook::\n\n >>> xtraceback.compat.install_sys_excepthook()\n >>> print sys.excepthook #doctest: +ELLIPSIS\n >\n >>> raise Exception(\"exc\") #doctest: +ELLIPSIS\n Traceback (most recent call last):\n File \"/doctest.py\", line 1231, in __run\n compileflags, 1) in test.globs\n File \"\", line 1, in \n raise Exception(\"exc\") #doctest: +ELLIPSIS\n Exception: exc\n\nBy itself::\n\n >>> try:\n ... raise Exception(\"exc\")\n ... except:\n ... print xtraceback.XTraceback(*sys.exc_info(), color=False) #doctest: +ELLIPSIS\n Traceback (most recent call last):\n File \"\", line 2, in \n 1 try:\n --> 2 raise Exception(\"exc\")\n g:some_func = \n g:sys = \n g:traceback = \n g:xtraceback = \n 3 except:\n 4 print xtraceback.XTraceback(*sys.exc_info(), color=False) #doctest: +ELLIPSIS\n Exception: exc\n \n\nIn a sitecustomize module::\n\n import xtraceback\n xtraceback.compat.install()\n\nConfiguration\n-------------\n\nFor options and their defaults see `xtraceback.XTraceback`'s constructor. When\nusing stdlib compat the `xtraceback.StdlibCompat` class has a `defaults`\ndictionary which should be updated with your overrides - the default instance\nexists at xtraceback.compat::\n\n xtraceback.compat.defaults.update(option=value[, ...])\n\nInstallation\n------------\n\nThe package is on PyPI::\n\n pip install xtraceback\n\nSyntax highlighting depends on the pygments library::\n\n pip install pygments\n\nNose plugin\n-----------\n\nThe nose plugin is enabled with the `--with-xtraceback` flag. See `nosetests --help`\nfor other options.", "description_content_type": null, "docs_url": "https://pythonhosted.org/xtraceback/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ischium/xtraceback", "keywords": "traceback exception nose", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "xtraceback", "package_url": "https://pypi.org/project/xtraceback/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/xtraceback/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ischium/xtraceback" }, "release_url": "https://pypi.org/project/xtraceback/0.3.3/", "requires_dist": null, "requires_python": null, "summary": "An extended traceback formatter", "version": "0.3.3" }, "last_serial": 895039, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "ac76a34404611ec3208cf55b3329604c", "sha256": "db4b96e331c9af1d19e7f80266cf44398975e32b0a52bc0bc602a68864e50c9a" }, "downloads": -1, "filename": "xtraceback-0.2.tar.gz", "has_sig": false, "md5_digest": "ac76a34404611ec3208cf55b3329604c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8214, "upload_time": "2011-06-25T20:54:42", "url": "https://files.pythonhosted.org/packages/be/75/da4565c34921c974028440fc594e2869ad8b26cb7be12c6bf32310d985d8/xtraceback-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "7b7cff44e2aaf3b14dca629088afb027", "sha256": "a22eadb049d6bc6fe62521d19cf58a354934de110c93a663bd12ec20b7ec5cac" }, "downloads": -1, "filename": "xtraceback-0.3.tar.gz", "has_sig": false, "md5_digest": "7b7cff44e2aaf3b14dca629088afb027", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10277, "upload_time": "2011-07-11T22:26:32", "url": "https://files.pythonhosted.org/packages/f1/0d/27d28702262697efb9e11dd9e969f2eaeb602c27828b242052717089064d/xtraceback-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "b4504e9c0738b9bd59adf46748c2ffa9", "sha256": "15540450b6dc8b459b8bb77aad089677a95e39680f2bcf029352dd161d71d961" }, "downloads": -1, "filename": "xtraceback-0.3.1.tar.gz", "has_sig": false, "md5_digest": "b4504e9c0738b9bd59adf46748c2ffa9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10067, "upload_time": "2011-10-21T17:21:16", "url": "https://files.pythonhosted.org/packages/25/2e/77300cb88025daf7e6c05fa265455c6c270952429576c3ed55c77d227c2e/xtraceback-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "e59e1a3f34bd5cce1dcb6a15b27dffde", "sha256": "85763183315f2d26bcc974eef957253c3a7cd4edbbb2702bd9aa8aeeaa8496f3" }, "downloads": -1, "filename": "xtraceback-0.3.2.tar.gz", "has_sig": false, "md5_digest": "e59e1a3f34bd5cce1dcb6a15b27dffde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10150, "upload_time": "2011-10-25T14:17:49", "url": "https://files.pythonhosted.org/packages/ab/62/9eee420069fbf64368dacf3d0c62c5899cabdec39fb6530545db629674fa/xtraceback-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "4c66a89137553d2e90810aa903052cc7", "sha256": "7460134dbc98978d17411321a8c466538dc3371c8411e73c25309b89706c94fb" }, "downloads": -1, "filename": "xtraceback-0.3.3.tar.gz", "has_sig": false, "md5_digest": "4c66a89137553d2e90810aa903052cc7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10355, "upload_time": "2011-11-09T13:25:16", "url": "https://files.pythonhosted.org/packages/71/44/f7bb4938697a0ba2fd40f2d536e4a4668439b6e41d01d9ee7a53d6ee9afa/xtraceback-0.3.3.tar.gz" } ], "0.4.0-rc1": [ { "comment_text": "", "digests": { "md5": "c0bc4f0b8f3c1a7133035ebfd62ecf12", "sha256": "0e1d0f91ae9e6c3188de823104341fae492fdf71742eec9e8c431098d01d9613" }, "downloads": -1, "filename": "xtraceback-0.4.0-rc1.tar.gz", "has_sig": false, "md5_digest": "c0bc4f0b8f3c1a7133035ebfd62ecf12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13237, "upload_time": "2013-10-15T16:35:25", "url": "https://files.pythonhosted.org/packages/ae/7e/250c8a60c993662e35688c28748ddccddb4d1e72fa7880d48929945782ef/xtraceback-0.4.0-rc1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4c66a89137553d2e90810aa903052cc7", "sha256": "7460134dbc98978d17411321a8c466538dc3371c8411e73c25309b89706c94fb" }, "downloads": -1, "filename": "xtraceback-0.3.3.tar.gz", "has_sig": false, "md5_digest": "4c66a89137553d2e90810aa903052cc7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10355, "upload_time": "2011-11-09T13:25:16", "url": "https://files.pythonhosted.org/packages/71/44/f7bb4938697a0ba2fd40f2d536e4a4668439b6e41d01d9ee7a53d6ee9afa/xtraceback-0.3.3.tar.gz" } ] }