Skip to main content

Lightweight error tracking for Python

Project description

booboo-sdk

CI PyPI version Python versions License: MIT

Official Python SDK for booboo.dev error tracking.

Installation

pip install booboo-sdk

Quick Start

import booboo

booboo.init("your-dsn-here")

That's it. Unhandled exceptions are automatically captured and sent to booboo.dev.

Manual Capture

try:
    risky_operation()
except Exception:
    booboo.capture_exception()  # captures the current exception

Or pass an exception explicitly:

try:
    risky_operation()
except Exception as e:
    booboo.capture_exception(e)

User Context

booboo.set_user({
    "id": "123",
    "email": "user@example.com",
    "username": "alice",
})

Framework Integration

Django

Auto-detected — no extra setup needed. The SDK injects middleware and patches Django's internal exception handler to capture errors that never reach middleware (like DisallowedHost). 404 errors are filtered by default.

Flask

from flask import Flask
import booboo

app = Flask(__name__)
booboo.init("your-dsn-here", app=app)

Or without passing app — the SDK monkey-patches Flask.__init__ to auto-register on any Flask app created after init(). 404 errors are filtered by default.

FastAPI

from fastapi import FastAPI
import booboo

app = FastAPI()
booboo.init("your-dsn-here", app=app)

Same auto-detection as Flask if app is not passed explicitly.

Configuration

booboo.init(
    dsn="your-dsn-here",
    environment="production",
    ignore_errors=[KeyboardInterrupt, ConnectionError],
)
Parameter Default Description
dsn (required) Your project's DSN from booboo.dev
app None Flask/FastAPI app instance for explicit registration
environment "" Environment name (e.g. "production", "staging"). Attached to every event.
ignore_errors None List of exception classes to suppress. Uses isinstance() so subclasses are matched.
endpoint https://api.booboo.dev/ingest/ Ingestion endpoint URL

Features

  • Automatic capture of unhandled exceptions
  • Rich stack traces with source context and local variables
  • Exception chain support (raise ... from ...)
  • PII scrubbing for sensitive headers and variables
  • Django, Flask, and FastAPI integrations
  • Non-blocking event delivery
  • Graceful shutdown flush
  • Minimal dependency footprint (requests only)

License

MIT

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

booboo_sdk-0.13.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

booboo_sdk-0.13.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file booboo_sdk-0.13.0.tar.gz.

File metadata

  • Download URL: booboo_sdk-0.13.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for booboo_sdk-0.13.0.tar.gz
Algorithm Hash digest
SHA256 4978fdbd1a37dfab596377b5de24c3a13ffbf7731f8d1dca3b8ef2330567ca8c
MD5 a04e528aaf78d23c6c72392be4784545
BLAKE2b-256 3b2e1b5c9e00a59fcc221a7808e72418a281271663524df3517bd87387bbbf9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for booboo_sdk-0.13.0.tar.gz:

Publisher: publish.yml on getbooboo/python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file booboo_sdk-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: booboo_sdk-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for booboo_sdk-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4333ad5d7befc30fe388169708bbcf1128d7bfff0f26b197e3c13acf86d9add
MD5 2442c78deb6d66d9e99a293d33393535
BLAKE2b-256 0de6c78fed1dc2278bfce2709c221ab90a314fe8c9c840438869c8f35cb9965b

See more details on using hashes here.

Provenance

The following attestation bundles were made for booboo_sdk-0.13.0-py3-none-any.whl:

Publisher: publish.yml on getbooboo/python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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