Skip to main content

tackbox-report (Python)

Direct error-reporting helpers for Python applications using Sentry or GlitchTip. A thin wrapper over sentry-sdk. An empty DSN makes every call a log-only no-op, so a repo can adopt the API before any Sentry/GlitchTip endpoint exists.

This is one runtime arm of tackbox. The linter recognizes these helpers as one valid report outcome; propagating the error or carrying an explained local exception stays valid too. The linter ships separately as the tackbox distribution; installing this helper does not pull the linter, and vice versa.

Install

pip install tackbox-report

Distribution tackbox-report, import package tackbox_report. Requires Python 3.11+ and sentry-sdk 2.x.

Use

import tackbox_report as report

report.init(report.dsn_from_env())           # empty DSN -> log-only no-op
report.set_notifier(on_notice)               # user-lane sink; None clears it

report.report_error("db write failed", cause=exc, dedup_key="vault.save")
report.report_warn("cache miss", cause=exc, dedup_key="cache.read")
report.report_quiet("degraded, fell back", cause=exc, dedup_key="idx.stale")
report.notify("you appear to be offline", cause=exc, dedup_key="conn.offline")
report.report_panic("ipc-loop", recovered)   # fatal, fingerprint panic:<name>
report.crumb("ipc", "frame decoded")

report_error and report_warn feed the local log, the user lane, and Sentry capture; report_quiet skips the user lane; notify feeds only the user lane; report_panic feeds all three. set_notifier registers a Callable[[Notice], None] and None clears it; Notice carries msg, level, dedup_key, cause, and tags, and the app owns rendering and any coalescing keyed on dedup_key.

Runtime contract

Lane routing, telemetry dedup, panic grouping, and capture isolation are the shared cross-language contract, documented in docs/report-contracts.md. See DESIGN.md for the Python implementation choices.

Metadata

Release files for tackbox-report 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tackbox-report 0.2.0
File Size Uploaded Provenance
tackbox_report-0.2.0.tar.gz 9.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tackbox-report 0.2.0
File Interpreter ABI Platform
tackbox_report-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.9 kB

Release files / tackbox_report-0.2.0.tar.gz

Download URL tackbox_report-0.2.0.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
643f207de8d0c3242b808544f30f59b4dcf36cb8c3689800a4395daa9cd9007d
BLAKE2b-256 checksum
How to use checksums
c10db70f9384173441cdcd9bceae0d8a74649f7fdcf351ead4c85f455faccac9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.

Transparency log

Release files / tackbox_report-0.2.0-py3-none-any.whl

Download URL tackbox_report-0.2.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abad019a78a420e1840592a62cad1e15f9a39adccfb5c0b71054529e070b70fa
BLAKE2b-256 checksum
How to use checksums
227c7c27d1547eb64b2f348711d0decb07f8a3c426d410f565e511f2b4c0844a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.

Transparency log

Security for tackbox-report 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tackbox_report-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page