pyqt/pyside应用程序的崩溃报告框架
qcrash的Python项目详细描述
功能
- 用于报告错误的多个内置后端:
- github_backend:允许您在github上创建问题
- 电子邮件后端:让您发送一封包含崩溃报告的电子邮件。
- 高度可配置,您可以创建自己的后端,设置自己的格式化程序,…
- 一种线程安全的异常挂接机制,可以设置自己的函数
屏幕截图
在KDE Plasma 5上拍摄的屏幕截图
- 报告对话框
- 提交前审查报告
- Github集成
许可证
qcrash是根据麻省理工学院的许可证授权的。
安装
pip install qcrash
用法
基本用法:
importqcrash.apiasqcrash# setup our own function to collect system info and application logqcrash.get_application_log=my_app.get_application_logqcrash.get_system_information=my_app.get_system_info# configure backendsgithub=qcrash.backends.GithubBackend('ColinDuquesnoy','QCrash')email=qcrash.backends.EmailBackend('colin.duquesnoy@gmail.com')qcrash.install_backend([github,email])# install exception hookqcrash.install_except_hook()# or show the report dialog manuallyqcrash.show_report_dialog()
一些更详细的examples是可用的。也看一下 API documentation。
测试
要运行测试,只需运行以下命令:
python setup.py test