{ "info": { "author": "Anton Backer", "author_email": "olegov@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3" ], "description": "Colored Traceback\n=================\n\nAutomatically color Python's uncaught exception tracebacks.\n\nThis one's for anybody who's ever struggled to read python's stacktraces on the\nterminal. Something about the two-lines-per-frame approach really just makes\nthem tough to scan visually.\n\nCompare this:\n\n::\n\n Traceback (most recent call last):\n File \"./workflowy.py\", line 525, in \n main()\n File \"./workflowy.py\", line 37, in main\n projects = cli.load_json(args, input_is_pipe)\n File \"./workflowy.py\", line 153, in load_json\n return json.load(sys.stdin)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py\", line 290, in load\n **kw)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py\", line 338, in loads\n return _default_decoder.decode(s)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py\", line 365, in decode\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py\", line 383, in raw_decode\n raise ValueError(\"No JSON object could be decoded\")\n ValueError: No JSON object could be decoded\n\nTo this:\n\n.. code-block:: python\n\n Traceback (most recent call last):\n File \"./workflowy.py\", line 525, in \n main()\n File \"./workflowy.py\", line 37, in main\n projects = cli.load_json(args, input_is_pipe)\n File \"./workflowy.py\", line 153, in load_json\n return json.load(sys.stdin)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py\", line 290, in load\n **kw)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py\", line 338, in loads\n return _default_decoder.decode(s)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py\", line 365, in decode\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py\", line 383, in raw_decode\n raise ValueError(\"No JSON object could be decoded\")\n ValueError: No JSON object could be decoded\n\nInstallation\n------------\n\nThrough pip:\n\n.. code-block:: bash\n\n pip install colored-traceback\n\nOr directly:\n\n.. code-block:: bash\n\n git clone http://www.github.com/staticshock/colored-traceback.py\n python setup.py install\n\nOn Windows, which has no real support for ANSI escape sequences, there's an\nadditional dependency on `colorama`:\n\n.. code-block:: bash\n\n pip install colorama\n\nUsage\n-----\n\nColored Traceback can be executed as a module:\n\n.. code-block:: bash\n\n python -m colored_traceback somefile.py\n\nColored Traceback also works well within a script or even directly in the\ninterpreter REPL. Standard usage will color the output, unless it's being\nredirected to a pipe:\n\n.. code-block:: python\n\n import colored_traceback\n colored_traceback.add_hook()\n\nIf want to retain color even when stderr is being piped, tack on an\n`always=True` argument:\n\n.. code-block:: python\n\n import colored_traceback\n colored_traceback.add_hook(always=True)\n\nThere are also a couple of convenience imports, which get the footprint down to\none line:\n\n.. code-block:: python\n\n # Same as add_hook()\n import colored_traceback.auto\n\n # Same as add_hook(always=True)\n import colored_traceback.always\n\nIt goes without saying that you might want to catch `ImportError`, making the\npresence of the package optional:\n\n.. code-block:: python\n\n try:\n import colored_traceback.auto\n except ImportError:\n pass\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.github.com/staticshock/colored-traceback.py", "keywords": "", "license": "ISC", "maintainer": "", "maintainer_email": "", "name": "colored-traceback", "package_url": "https://pypi.org/project/colored-traceback/", "platform": "", "project_url": "https://pypi.org/project/colored-traceback/", "project_urls": { "Homepage": "http://www.github.com/staticshock/colored-traceback.py" }, "release_url": "https://pypi.org/project/colored-traceback/0.3.0/", "requires_dist": [ "pygments" ], "requires_python": "", "summary": "Automatically color uncaught exception tracebacks", "version": "0.3.0" }, "last_serial": 2857777, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "59ece7fac478ec48e44298815192c363", "sha256": "5a934581b8ca5516595200c96ab0db2b2dd6fe5c515edcd0cfb216d6f00340d3" }, "downloads": -1, "filename": "colored_traceback-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "59ece7fac478ec48e44298815192c363", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6013, "upload_time": "2014-08-01T12:15:48", "url": "https://files.pythonhosted.org/packages/75/e4/3fa384495fd043c25533890207a2df74ff26ecd86884fefb47ea0a526c2a/colored_traceback-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc216a7faa541750cd9cfd9834567b0c", "sha256": "7a835a87316af53aa4e9dabb9682eaef0877154acfbd463daa298b2e141ee569" }, "downloads": -1, "filename": "colored-traceback-0.1.0.tar.gz", "has_sig": false, "md5_digest": "dc216a7faa541750cd9cfd9834567b0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3440, "upload_time": "2014-08-01T12:15:50", "url": "https://files.pythonhosted.org/packages/2b/4a/affff3e823d46b7da823e338afcf44c56e5b3b1532e7a736097b6f928a5e/colored-traceback-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a1dfd4b5780361fc19b5a9ddfca3e2a1", "sha256": "4c28ff784bd88a8c2c5c306ad1c7ce1ce6c84c50e8d555fa5707afc4444bd4aa" }, "downloads": -1, "filename": "colored_traceback-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "a1dfd4b5780361fc19b5a9ddfca3e2a1", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6093, "upload_time": "2014-08-04T01:23:51", "url": "https://files.pythonhosted.org/packages/72/e8/d28367a91142aff896ce1f14bc35c4b99d43b456f8db326cea3fdb99b359/colored_traceback-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "32b8250aa895eb500be1780e7d0a012f", "sha256": "51387adefa232ca9484783d8f704b64238de66a3a2162abb7b51120f7a6d5a72" }, "downloads": -1, "filename": "colored-traceback-0.2.0.tar.gz", "has_sig": false, "md5_digest": "32b8250aa895eb500be1780e7d0a012f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3470, "upload_time": "2014-08-04T01:23:48", "url": "https://files.pythonhosted.org/packages/23/88/22f8923459a8936682de1d43353cac6d33d16f7251e4cb78e93999ae3960/colored-traceback-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "dcb65b1840e7ee278f25b5f3a2c676b3", "sha256": "c8880c3fd67bbe96f7e5260e27e7ab9e8ef9c31077ce900927a8c3a3555157ee" }, "downloads": -1, "filename": "colored_traceback-0.2.1-py2-none-any.whl", "has_sig": false, "md5_digest": "dcb65b1840e7ee278f25b5f3a2c676b3", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6097, "upload_time": "2014-12-15T18:20:07", "url": "https://files.pythonhosted.org/packages/45/7e/c3d00cd41e5eefc2fd3cef5ea0a8d97772eb05b57616709895f30b20e874/colored_traceback-0.2.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3a893494601ef1f4181293ba5ef13eba", "sha256": "3319f862898c682380b9f93387bf3f392a383f6fe08039cea70801b3310a0ca8" }, "downloads": -1, "filename": "colored-traceback-0.2.1.tar.gz", "has_sig": false, "md5_digest": "3a893494601ef1f4181293ba5ef13eba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3477, "upload_time": "2014-12-15T18:20:05", "url": "https://files.pythonhosted.org/packages/cf/a2/afc8e2a1a0f36de0ee6d2e34df33c16b20e2fb55165bdc2f194a3c574913/colored-traceback-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "3bbf650509bcc2b130d08b610cb34a93", "sha256": "6ebbb1eb58a91263e1ad974b0aa668f857c5fb6ca2448aac7bb6ee8e8f8949da" }, "downloads": -1, "filename": "colored_traceback-0.2.2-py2-none-any.whl", "has_sig": false, "md5_digest": "3bbf650509bcc2b130d08b610cb34a93", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6117, "upload_time": "2015-11-04T19:25:44", "url": "https://files.pythonhosted.org/packages/e0/84/4e80070bad55427e8aa25169b12c6508f163c12e7a50e10d06b2e2fd77f3/colored_traceback-0.2.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e969ec98a3c7513bdbabc7370e2e9247", "sha256": "9a390daf70a4f12d95effd78c474acfd9869c888dbec36c970d6a94e5cc0f2bf" }, "downloads": -1, "filename": "colored-traceback-0.2.2.tar.gz", "has_sig": false, "md5_digest": "e969ec98a3c7513bdbabc7370e2e9247", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3493, "upload_time": "2015-11-04T19:25:52", "url": "https://files.pythonhosted.org/packages/be/77/b83a2400fdeaf2c1e8972aa4b1d62d9af665871403a680c686fd0c87ba7d/colored-traceback-0.2.2.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "4d74766422b8f588204a7853b867176b", "sha256": "f76c21a4b4c72e9e09763d4d1b234afc469c88693152a763ad6786467ef9e79f" }, "downloads": -1, "filename": "colored_traceback-0.3.0-py2-none-any.whl", "has_sig": false, "md5_digest": "4d74766422b8f588204a7853b867176b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6704, "upload_time": "2017-05-07T21:45:01", "url": "https://files.pythonhosted.org/packages/68/95/d9b20efe099fff830502c6c7b83da4f1cdfd3346922d87da9bca3e63f897/colored_traceback-0.3.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "75c97b9735f743212c64bb0661b612c4", "sha256": "6da7ce2b1da869f6bb54c927b415b95727c4bb6d9a84c4615ea77d9872911b05" }, "downloads": -1, "filename": "colored-traceback-0.3.0.tar.gz", "has_sig": false, "md5_digest": "75c97b9735f743212c64bb0661b612c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3837, "upload_time": "2017-05-07T21:45:04", "url": "https://files.pythonhosted.org/packages/9a/8b/0a4e2a8cdc14279b265532f11c9cb75396880e6295c99a0bed7281b6076a/colored-traceback-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4d74766422b8f588204a7853b867176b", "sha256": "f76c21a4b4c72e9e09763d4d1b234afc469c88693152a763ad6786467ef9e79f" }, "downloads": -1, "filename": "colored_traceback-0.3.0-py2-none-any.whl", "has_sig": false, "md5_digest": "4d74766422b8f588204a7853b867176b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6704, "upload_time": "2017-05-07T21:45:01", "url": "https://files.pythonhosted.org/packages/68/95/d9b20efe099fff830502c6c7b83da4f1cdfd3346922d87da9bca3e63f897/colored_traceback-0.3.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "75c97b9735f743212c64bb0661b612c4", "sha256": "6da7ce2b1da869f6bb54c927b415b95727c4bb6d9a84c4615ea77d9872911b05" }, "downloads": -1, "filename": "colored-traceback-0.3.0.tar.gz", "has_sig": false, "md5_digest": "75c97b9735f743212c64bb0661b612c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3837, "upload_time": "2017-05-07T21:45:04", "url": "https://files.pythonhosted.org/packages/9a/8b/0a4e2a8cdc14279b265532f11c9cb75396880e6295c99a0bed7281b6076a/colored-traceback-0.3.0.tar.gz" } ] }