Skip to main content

A Python package for sending Unhandled Exceptions to BugSplat

Project description

bugsplat-py

A BugSplat integration for reporting Unhandled Exceptions in Python.

Installing

Install the bugsplat package using pip

pip install bugsplat

Usage

  1. Import the BugSplat class
from bugsplat import BugSplat
  1. Create a new BugSplat instance passing it the name of your BugSplat database, application and version
bugsplat = BugSplat(database, application, version)
  1. Optionally, you set default values for appKey, description, email, user and additionaFilePaths
bugsplat.setDefaultAppKey('key!')
bugsplat.setDefaultDescription('description!')
bugsplat.setDefaultEmail('fred@bugsplat.com')
bugsplat.setDefaultUser('Fred')
bugsplat.setDefaultAdditionalFilePaths([
    additionalFilePath,
    additionalFilePath2
])
  1. Wrap your application code in a try except block. In the except block call post. You can override any of the default properties that were set in step 3
try:
    crash()
except Exception as e:
    bugsplat.post(e, additionalFilePaths=[], appKey='other key!', description='other description!', email='barney@bugsplat.com', user='Barney')
  1. Once you've posted a crash, navigate to the Crashes page and click the link in the ID column to be see the crash's details

Thanks for using BugSplat ❤️

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bugsplat-0.2.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distributions

bugsplat-0.2.0-py3.10.egg (5.7 kB view details)

Uploaded Source

bugsplat-0.2.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file bugsplat-0.2.0.tar.gz.

File metadata

  • Download URL: bugsplat-0.2.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for bugsplat-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f07af5a77cc9cc33eecc0c86853ab24cda78a80af5da6f021c0036ffd33a5357
MD5 b1632b4d8b5b0ae017ed24082237cd2e
BLAKE2b-256 584dda288ff740a53dc1c6cc6695d67119cc10cc76ac5753d4f634ce11225398

See more details on using hashes here.

File details

Details for the file bugsplat-0.2.0-py3.10.egg.

File metadata

  • Download URL: bugsplat-0.2.0-py3.10.egg
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for bugsplat-0.2.0-py3.10.egg
Algorithm Hash digest
SHA256 92b13e807cf8d883e669fceac7d913241fd8e2540ec30eeade2d6e2a811424df
MD5 200e367e6c029e05daff294f93e31c21
BLAKE2b-256 50751ea185cb76b265bc184ae9184fb09a1e20a7c921813cbe28ca9a43507b41

See more details on using hashes here.

File details

Details for the file bugsplat-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: bugsplat-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for bugsplat-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6072682912b3630e9bca35d63c7f7c890d88cc59947b048c9a0d129ead79353
MD5 6a322cbecb1435a67f05f569a9013414
BLAKE2b-256 b710329b16fca64bad09fa3efdf4ed893e85a01ffa73b3de29de91c584cfbe99

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page