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.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bugsplat-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 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.1.0.tar.gz
Algorithm Hash digest
SHA256 1d7d792cdd545a1be26f71984d4c05013b23492665f2b01416453796539ab788
MD5 11ae0482262e57f6f5e09cf41446e7be
BLAKE2b-256 61c67cb797a8da8ba56bdcc8ea9eda967840eb1f781dccf0b4fb84a21fc782b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bugsplat-0.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 185a39de678a30df030e5c3490afda369cc7f8a4ef28e9522fb26b1a299ff530
MD5 e41ce76227b11f6ba4852411180c1bd4
BLAKE2b-256 998774e403de1f207f22e98abf8122415238e2704849030fd77a20c2473a642f

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