{ "info": { "author": "Tim Aylott", "author_email": "tsa29@bath.ac.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Build Tools" ], "description": "====================\r\nTiny Crash Reporter\r\n====================\r\n\r\nThis library is designed to print any exceptions which a Python program encounters when it is run to standard out. \r\n\r\nInstall:\r\n------------\r\nIn terminal run -> *pip3 install tinycrashreporter*\r\n\r\nThis is enough to get the modlue working as it should. However, to run the samples and unit tests. Also...\r\n\r\nNavigate to the location that you want to keep the package.\r\n\r\nIn terminal run -> *pip download tinycrashreporter*\r\n\r\nThen in the same folder...\r\n\r\nIn terminal run-> *tar -xvzf tinycrashreporter-1.0.3.tar.gz* to extract the downloaded files.\r\n\r\nYou're ready to get started!\r\n\r\nThe library code also workes in Python 2.7 but there is not yet a PIP package for that one.\r\n\r\nSetup: \r\n---------\r\n1. Import both sys and the tinycrashreporter library into your program.\r\n2. Add the line -> *sys.excepthook = tinycrashreporter.crashReportExceptHook* <- bellow your imports.\r\n3. In terminal run-> *Python3 ~/PythonFiles/MyTinyCrashReporterProgram.py*\r\n\r\nWarning: IDLE and other IDE's appear to use the same method override as Tiny Crash Reporter and are not currently supported. Please run from a command line instead.\r\n\r\nExample:\r\n------------\r\nAdd the following lines of code into a blank python file. \r\n\r\n::\r\n\r\n\t#!/usr/bin/env python\r\n\t# set up tiny crash reporter:\r\n\timport sys\r\n\timport (...any_other_module...)\r\n\timport tinycrashreporter\r\n\r\n\tsys.excepthook = tinycrashreporter.crashReportExceptHook\r\n\r\n\t# Add some crashy code \r\n\t1/0\r\n\r\nBlank file:\r\n-----------\r\nA blank file, which includes the code above and conforms to the specification has been included DownloadedPackageLocation/Samples/ImportedLibraryOnly.py\r\n\r\nIn teminal run -> *python3 ImportedLibraryOnly.py*\r\n\r\nFile with options:\r\n-------------------\r\nA file DownloadedPackageLocation/SamplesCrashyProgram.py has also been set up which supports the execution of code passed as an argument. This is for testing purposes and this code should not be published as part of a release project due to its inherent insecurities.\r\n\r\nIn terminal run -> *python3 CrashyProgram.py*\r\n\r\nUnit tests:\r\n--------------\r\n8 Tests are available in DownloadedPackageLocation/Samples/CrashTest.py. To run these, open DownloadedPackageLocation/Tests/CrashTest.py manually edit the file path to point to DownloadedPackageLocation/Tests/CrashyProgram.py. Then...\r\n\r\nIn terminal run -> *python3 ~/SampleLocation/CrashTest.py -v*\r\n\r\nOne of the tests requests user to input some crashy code. This facility doesn't work with \" or ' characters and the inclusion of some other special characters may cause similar errors. More work is needed to properly escape the input. If in doubt, the default test will run on pressing enter.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tim81cortes/", "keywords": "crash report", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "tinycrashreporter", "package_url": "https://pypi.org/project/tinycrashreporter/", "platform": "", "project_url": "https://pypi.org/project/tinycrashreporter/", "project_urls": { "Homepage": "https://github.com/tim81cortes/" }, "release_url": "https://pypi.org/project/tinycrashreporter/1.0.3/", "requires_dist": null, "requires_python": "", "summary": "A Python library to log any exceptions to standard out.", "version": "1.0.3" }, "last_serial": 2919862, "releases": { "1.0.3": [ { "comment_text": "", "digests": { "md5": "26ef3c936344fa0e60353b20fef3b117", "sha256": "6ad649673cceadb77f18d70fcc2ecf4ae06e4ea8ba6d8713355b7185e8ac6e90" }, "downloads": -1, "filename": "tinycrashreporter-1.0.3.tar.gz", "has_sig": false, "md5_digest": "26ef3c936344fa0e60353b20fef3b117", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8269, "upload_time": "2017-05-29T14:04:17", "url": "https://files.pythonhosted.org/packages/e2/d3/c446641a806b41207a8dc457e38b6fdc782d39505f61bb25ff383a1b2934/tinycrashreporter-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "26ef3c936344fa0e60353b20fef3b117", "sha256": "6ad649673cceadb77f18d70fcc2ecf4ae06e4ea8ba6d8713355b7185e8ac6e90" }, "downloads": -1, "filename": "tinycrashreporter-1.0.3.tar.gz", "has_sig": false, "md5_digest": "26ef3c936344fa0e60353b20fef3b117", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8269, "upload_time": "2017-05-29T14:04:17", "url": "https://files.pythonhosted.org/packages/e2/d3/c446641a806b41207a8dc457e38b6fdc782d39505f61bb25ff383a1b2934/tinycrashreporter-1.0.3.tar.gz" } ] }