Skip to main content

A Python package for sending Unhandled Exceptions to BugSplat

Reason this release was yanked:

Bad publish

Project description

bugsplat-github-banner-basic-outline

BugSplat

Crash and error reporting built for busy developers.

👋 Introduction

This repo contains the source code for bugsplat-py, a BugSplat integration for reporting Unhandled Exceptions in Python.

🏗 Installation

Install the bugsplat package using pip

pip install bugsplat

⚙️ Configuration

  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([
    './path/to/additional-file.txt',
    './path/to/additional-file-2.txt'
])
  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
BugSplat Crash Page

🧑‍💻 Development

To configure a development environment:

  1. Clone the repository
git clone https://github.com/BugSplat-Git/bugsplat-py.git
  1. Create a virtual environment
python -m venv venv
  1. Activate the virtual environment
# unix/macos
source venv/bin/activate

# windows
.\env\Scripts\activate
  1. Install the project's dependencies
pip install .

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

Uploaded Source

File details

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

File metadata

  • Download URL: bugsplat-1.0.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for bugsplat-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d00bdc9596892a37cbaa99254e63803a247ff1b182432e38026859690763072a
MD5 8b82d365f77e293a82a59921908fe1c5
BLAKE2b-256 40909c10124de926c108e61bbe20938ad9f62094a2bb458c7743d7dc14e4c64d

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