Skip to main content

About

Latest PyPI version Number of PyPI downloads https://img.shields.io/pypi/l/qcrash.svg API Coverage Travis-CI Build Status

A PyQt/PySide framework for reporting application crash (unhandled exception) and/or let the user report an issue/feature request.

Features

  • multiple builtin backends for reporting bugs:

    • github_backend: let you create issues on github

    • email_backend: let you send an email with the crash report.

  • highly configurable, you can create your own backend, set your own formatter,…

  • a thread safe exception hook mechanism with a way to setup your own function

Screenshots

Screenshots taken on KDE Plasma 5

  • Report dialog

https://raw.githubusercontent.com/ColinDuquesnoy/QCrash/master/docs/_static/qcrash_report.png
  • Review report before submitting

https://raw.githubusercontent.com/ColinDuquesnoy/QCrash/master/docs/_static/qcrash_review.png
  • Github integration

https://github.com/ColinDuquesnoy/QCrash/blob/master/docs/_static/qcrash_github_login.png

LICENSE

QCrash is licensed under the MIT license.

Installation

pip install qcrash

Usage

Basic usage:

import qcrash.api as qcrash

# setup our own function to collect system info and application log
qcrash.get_application_log = my_app.get_application_log
qcrash.get_system_information = my_app.get_system_info

# configure backends
github = qcrash.backends.GithubBackend('ColinDuquesnoy', 'QCrash')
email = qcrash.backends.EmailBackend('colin.duquesnoy@gmail.com')
qcrash.install_backend([github, email])

# install exception hook
qcrash.install_except_hook()

# or show the report dialog manually
qcrash.show_report_dialog()

Some more detailed examples are available. Also have a look at the API documentation.

Dependencies

Testing

To run the tests, just run the following command:

python setup.py test

Metadata

Release files for qcrash 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qcrash 0.2.0
File Size Uploaded
qcrash-0.2.0.tar.gz 23.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qcrash 0.2.0
File Interpreter ABI Platform
qcrash-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 58.6 kB

Release files / qcrash-0.2.0.tar.gz

Download URL qcrash-0.2.0.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5a8851fec9812ec547b00a812cf8184cc03aa987e08b4dff1c3629b87cb69d65
BLAKE2b-256 checksum
How to use checksums
2bb357f5a244d963e766ec8b0a2ea959f6fbc51f01057ce84b53553fc45efc73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / qcrash-0.2.0-py2.py3-none-any.whl

Download URL qcrash-0.2.0-py2.py3-none-any.whl
Size 34.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
916b2c4ecff1613ca9ebb7886861272272baeb1a597ad980edafcf70e24e642a
BLAKE2b-256 checksum
How to use checksums
060fe282d161d74df02aa7c3bdef285b31b115dcd18eadea60e3c8dfa7004163
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page