Lightweight error tracking for Python
Project description
booboo-sdk
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).
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().
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",
endpoint="https://api.booboo.dev/ingest/", # default
)
| Parameter | Default | Description |
|---|---|---|
dsn |
(required) | Your project's DSN from booboo.dev |
endpoint |
https://api.booboo.dev/ingest/ |
Ingestion endpoint URL |
app |
None |
Flask/FastAPI app instance for explicit registration |
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 (
requestsonly)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file booboo_sdk-0.8.0.tar.gz.
File metadata
- Download URL: booboo_sdk-0.8.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d904f8cdd83476e7770e18d83b92aa145988133a23189d6a66b6073913801ae1
|
|
| MD5 |
c2eeed416ac49079611cf817ab434920
|
|
| BLAKE2b-256 |
8a0878b782073d179dde9023531c0d805eebaab5ad7ae15d6dfebde676e364b2
|
Provenance
The following attestation bundles were made for booboo_sdk-0.8.0.tar.gz:
Publisher:
publish.yml on getbooboo/python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
booboo_sdk-0.8.0.tar.gz -
Subject digest:
d904f8cdd83476e7770e18d83b92aa145988133a23189d6a66b6073913801ae1 - Sigstore transparency entry: 983548334
- Sigstore integration time:
-
Permalink:
getbooboo/python@6d745215f3d3ac568124b9cf3ff6953743946444 -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/getbooboo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6d745215f3d3ac568124b9cf3ff6953743946444 -
Trigger Event:
release
-
Statement type:
File details
Details for the file booboo_sdk-0.8.0-py3-none-any.whl.
File metadata
- Download URL: booboo_sdk-0.8.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cde2427b7f91aea3d705959982fcad53aa3dbcbf00f9629c48094d57957dfc4b
|
|
| MD5 |
b58dbf3aaf57aec7e76244016359be36
|
|
| BLAKE2b-256 |
ccfc00444eebdbfe3b6444d316eecf4d581be0179e00c40137022bafd6fea949
|
Provenance
The following attestation bundles were made for booboo_sdk-0.8.0-py3-none-any.whl:
Publisher:
publish.yml on getbooboo/python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
booboo_sdk-0.8.0-py3-none-any.whl -
Subject digest:
cde2427b7f91aea3d705959982fcad53aa3dbcbf00f9629c48094d57957dfc4b - Sigstore transparency entry: 983548335
- Sigstore integration time:
-
Permalink:
getbooboo/python@6d745215f3d3ac568124b9cf3ff6953743946444 -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/getbooboo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6d745215f3d3ac568124b9cf3ff6953743946444 -
Trigger Event:
release
-
Statement type: