{ "info": { "author": "Luke Macken", "author_email": "lmacken@redhat.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License (GPL)", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Internet :: Log Analysis", "Topic :: Software Development :: Debuggers", "Topic :: Text Processing :: Filters", "Topic :: Utilities" ], "description": "Traceback Grep\n==============\n\n.. image:: https://api.travis-ci.org/lmacken/tbgrep.png?branch=master\n :target: http://travis-ci.org/lmacken/tbgrep\n.. image:: https://coveralls.io/repos/lmacken/tbgrep/badge.png?branch=master\n :target: https://coveralls.io/r/lmacken/tbgrep\n.. image:: https://pypip.in/v/tbgrep/badge.png\n :target: https://crate.io/packages/tbgrep\n.. image:: https://pypip.in/d/tbgrep/badge.png\n :target: https://crate.io/packages/tbgrep\n\nA module & command-line tool for extracting Python tracebacks from text.\n\n\nExtracting tracebacks from bunch of files\n-----------------------------------------\n\n.. code-block:: bash\n\n $ tbgrep file1 file2 file3\n\nGrepping for tracebacks in a pipeline\n-------------------------------------\n\n.. code-block:: bash\n\n $ tail -f logfile | tbgrep\n\nDisplaying all unique tracebacks ordered by the number of occurrences\n---------------------------------------------------------------------\n\n.. code-block:: bash\n\n $ tbgrep --stats logfile\n [...]\n\n == 99 occurences ==================================================\n\n Traceback (most recent call last):\n File \"/usr/lib/python2.4/site-packages/bodhi/admin.py\", line 209, in _masher_request\n req_params=kwargs)\n File \"/usr/lib/python2.4/site-packages/fedora/client/proxyclient.py\", line 285, in send_request\n raise AuthError(_('Unable to log into server. Invalid'\n AuthError: Unable to log into server. Invalid authentication tokens. Send new username and password\n\n ==================================================================\n 733 unique tracebacks extracted\n\nUsing the Python API\n--------------------\n\nOnce instantiated, you pass each line to the `process` method, which will\nreturn either None, or a string of a traceback.\n\n.. code-block:: python\n\n from tbgrep import TracebackGrep\n\n extractor = TracebackGrep()\n for line in file('logfile'):\n tb = extractor.process(line)\n if tb:\n print(tb)\n\nInstead of displaying each traceback found in the file, tbgrep also\nsupports generating statistics about all tracebacks in the file.\n\n.. code-block:: python\n\n extractor = TracebackGrep(stats=True)\n for line in file('logfile'):\n extractor.process(line)\n extractor.print_stats()\n\nThere are also some functions that allow you to search for tracebacks in a more\nconvenient way.\n\n.. code-block:: python\n\n from tbgrep import (\n tracebacks_from_lines, tracebacks_from_file,\n last_traceback_from_file)\n for tb in tracebacks_from_file(file('logfile')):\n print(tb)\n for tb in tracebacks_from_file(file('logfile'), reverse=True):\n print(tb)\n print(last_traceback_from_file(file('logfile')))\n\n\nSupported Input Formats\n-----------------------\n\ntbgrep can extract tracebacks from logs of various formats. For example,\nCherryPy starts the traceback on a line with other details (like module,\ntimestamp, etc), but the rest of the trace starts at the beginning of the line.\nApache logs, on the other hand, will prefix each line of the traceback with\nthis information. tbgrep is designed to handle these kinds of situations", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/lmacken/tbgrep", "keywords": "", "license": "GPLv3+", "maintainer": null, "maintainer_email": null, "name": "tbgrep", "package_url": "https://pypi.org/project/tbgrep/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tbgrep/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/lmacken/tbgrep" }, "release_url": "https://pypi.org/project/tbgrep/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Extract Python Tracebacks from text", "version": "0.3.0" }, "last_serial": 1403564, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6f510191af104245e5a33ba890b2d3e1", "sha256": "3ca096af1a205cd97a9c3a5e10789cd7407c2c6e53b3dd7ec6216e5b4c38e8fc" }, "downloads": -1, "filename": "tbgrep-0.1.tar.gz", "has_sig": false, "md5_digest": "6f510191af104245e5a33ba890b2d3e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3411, "upload_time": "2011-09-07T19:59:13", "url": "https://files.pythonhosted.org/packages/36/42/7d1787b50bc814845931f7482b49358ee70fe347a29cf60d1cc6af8948b0/tbgrep-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "9d1177bbfcd4f52d246c085872daa314", "sha256": "15f8cc2b7fa894b6c48e017a796b1287e6820478dd9abfb656806b7e73a3f49a" }, "downloads": -1, "filename": "tbgrep-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9d1177bbfcd4f52d246c085872daa314", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3409, "upload_time": "2011-09-07T20:07:37", "url": "https://files.pythonhosted.org/packages/c0/62/936a6818ea6fcdda98e3fa156df3288c88414b60a878bd8d3312d327a0df/tbgrep-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "459de8999ce8ef0e5b29e999fe1597da", "sha256": "2c6c6877c5a7291999b2e31f3c560509bd8fe719accdf015a051e7da834ef2b5" }, "downloads": -1, "filename": "tbgrep-0.1.2.tar.gz", "has_sig": false, "md5_digest": "459de8999ce8ef0e5b29e999fe1597da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3560, "upload_time": "2011-09-07T21:23:24", "url": "https://files.pythonhosted.org/packages/77/75/4d1e8e6871ad736521e874e18f6fd8782a02c847c07fd0fc950a5da86852/tbgrep-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "ec7c5a8da8919972100431378ae24bf9", "sha256": "5763d831c875b569c5ade3a14535dc6592bf6bc96b9c9b8c6e6605571844895d" }, "downloads": -1, "filename": "tbgrep-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ec7c5a8da8919972100431378ae24bf9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3634, "upload_time": "2011-09-25T22:24:29", "url": "https://files.pythonhosted.org/packages/5e/9b/5a0f67b67b14a58d575b7a9bca34ddbfe5a97868131583fb73a244f8714f/tbgrep-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "642e91efd64766f4d783ff8a48a4b20c", "sha256": "7eb74cef07a9666b3cca71b2d28ca9b45e22a2ba775d4e4a6af417c37c1a393f" }, "downloads": -1, "filename": "tbgrep-0.2.1.tar.gz", "has_sig": false, "md5_digest": "642e91efd64766f4d783ff8a48a4b20c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3602, "upload_time": "2012-08-13T05:49:18", "url": "https://files.pythonhosted.org/packages/07/e6/aafe6c062eb404fc8183ac1197de2d496292a337754c611347b6dd7c51d1/tbgrep-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "595bc9388276153e6f736381698b9638", "sha256": "f7e842c297ad97a7001069181de56dedd9bcf20f9bc701df09373645862ab7cf" }, "downloads": -1, "filename": "tbgrep-0.2.2.tar.gz", "has_sig": false, "md5_digest": "595bc9388276153e6f736381698b9638", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16675, "upload_time": "2012-08-13T05:58:20", "url": "https://files.pythonhosted.org/packages/15/98/574ef00067f61328ce94382e8d53dd27c49d4f44d62a449393a35df72093/tbgrep-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "7997e00b8d649d2144243b21ee539cc3", "sha256": "67fa842b0b088683671d67439a1949397ac5a5c1b2e35dae62faf36777cd9214" }, "downloads": -1, "filename": "tbgrep-0.2.3.tar.gz", "has_sig": false, "md5_digest": "7997e00b8d649d2144243b21ee539cc3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16887, "upload_time": "2013-07-22T19:46:21", "url": "https://files.pythonhosted.org/packages/a3/ee/d59588ec085527e984fd1e15645a1042dd65a06b86c224a8963b4da619eb/tbgrep-0.2.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "c57fb085a0710c2848a676832a76847e", "sha256": "53f0ec46ee24ce24cf2a178ac33de69e579e36d8a474c55fd564614146b5810d" }, "downloads": -1, "filename": "tbgrep-0.3.0.tar.gz", "has_sig": false, "md5_digest": "c57fb085a0710c2848a676832a76847e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18088, "upload_time": "2015-01-30T20:42:59", "url": "https://files.pythonhosted.org/packages/4f/0d/d411b33432dbeb419d743e28c33094516d2261ba0dca20dd9ad170ba62b3/tbgrep-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c57fb085a0710c2848a676832a76847e", "sha256": "53f0ec46ee24ce24cf2a178ac33de69e579e36d8a474c55fd564614146b5810d" }, "downloads": -1, "filename": "tbgrep-0.3.0.tar.gz", "has_sig": false, "md5_digest": "c57fb085a0710c2848a676832a76847e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18088, "upload_time": "2015-01-30T20:42:59", "url": "https://files.pythonhosted.org/packages/4f/0d/d411b33432dbeb419d743e28c33094516d2261ba0dca20dd9ad170ba62b3/tbgrep-0.3.0.tar.gz" } ] }