{ "info": { "author": "Mike Elson", "author_email": "mike.elson@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux" ], "description": "globexc\n=======\n\nIntroduction\n------------\n\nglobexc is a library which makes the Python interpreter write a detailed stack trace if an unhandled exception occurs in a script. This trace is written to a separate file and includes, for each level of the stack, the values of local variables and a few lines of context code. This allows the developer to perform a basic post-mortem analysis of an error without having to recreate the scenario inside a debugger or using verbose logging.\n\nThe output is similar to the in-browser stack trace given by the Werkzeug or Django web frameworks but available to any Python program even if it's not a web server. \n\nExample\n-------\n\nTo generate a stack trace:\n\n .. code:: python\n\n\timport globexc\n\n\t# install the exception handler\n\tglobexc.init_globexc()\n\n\t# cause an unhandled exception\n\ta = 1 / 0\n\nAnd the resulting terminal output:\n\n\n\tCRITICAL Exception (tests/sample.py:15) integer\n\tdivision or modulo by zero. Trace file written to '/home/user/trace.dump'.\n\nAnd for the stack trace see https://github.com/mjem/globexc/blob/master/extra/trace.dump.\n\nInstallation\n------------\n\nInstall using setuptools:\n\n .. code:: sh\n\n\tpython setup.py build\n\tpython setup.py install\n\nOr from pypi:\n\n .. code:: sh\n\n\tpip install globexc\n\nUsage\n-----\n\nCall ``init_globexc()`` during program startup to install the global exception handler. The stack trace will then be generated when any unhandled exception occurs. The output works whether or not the Python logging system has been initialised.\n\nEnvironment variables\n---------------------\n\nYou can set the following environment variable to configure the library:\n\n**GLOBEXC**\n Choose an alternative filename for stack traces.\n\nRequirements\n------------\n\nNone\n\nCompatibility\n-------------\n\nThis code has been tested under Linux and using Python 2.7 only.\n\nLegal\n-----\n\nglobexc is copyright 2013 Mike Elson\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this software except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nChangeLog\n---------\n\n0.1.1 (2013-11-11)\n~~~~~~~~~~~~~~~~~~\n\n* Fixed pypi index page\n\n0.1 (2013-11-11)\n~~~~~~~~~~~~~~~~\n\n* Initial release", "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/mjem/globexc", "keywords": null, "license": "Apache-2", "maintainer": null, "maintainer_email": null, "name": "globexc", "package_url": "https://pypi.org/project/globexc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/globexc/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/mjem/globexc" }, "release_url": "https://pypi.org/project/globexc/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Write a detailed stack trace if a program crashes", "version": "0.1.1" }, "last_serial": 916046, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b56eac804c0ab30ef570dffb96e09f1c", "sha256": "f563b7ac71d7ff0f28e2793a1637aa53185c3f9c5516dd71125b900f28a6b7fc" }, "downloads": -1, "filename": "globexc-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b56eac804c0ab30ef570dffb96e09f1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10848, "upload_time": "2013-11-11T01:04:06", "url": "https://files.pythonhosted.org/packages/ac/95/fcab77b24c21ea7a1dafa2e0cfedaa0dba365a74f95f8ccc8904426e2b66/globexc-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4f79ca8c71bebe93cbef47c624bc5844", "sha256": "a1c0b86046bfd5b5b5b6a9a1296008c6c391921f3f4d8c827dbdcc26114fe349" }, "downloads": -1, "filename": "globexc-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4f79ca8c71bebe93cbef47c624bc5844", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10938, "upload_time": "2013-11-11T01:35:08", "url": "https://files.pythonhosted.org/packages/dd/e5/c63bd7cd330ef84cd000fecf06375ec4c06c566bccbe0ef345e1ce590c5c/globexc-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4f79ca8c71bebe93cbef47c624bc5844", "sha256": "a1c0b86046bfd5b5b5b6a9a1296008c6c391921f3f4d8c827dbdcc26114fe349" }, "downloads": -1, "filename": "globexc-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4f79ca8c71bebe93cbef47c624bc5844", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10938, "upload_time": "2013-11-11T01:35:08", "url": "https://files.pythonhosted.org/packages/dd/e5/c63bd7cd330ef84cd000fecf06375ec4c06c566bccbe0ef345e1ce590c5c/globexc-0.1.1.tar.gz" } ] }