Skip to main content

DebugBundle SDK for Python

Project description

debugbundle-python

DebugBundle SDK for Python.

Installation

pip install debugbundle-python

Quick Start

import debugbundle

debugbundle.init(project_token="dbundle_proj_test", service="checkout-api")
debugbundle.capture_exception(RuntimeError("boom"))
debugbundle.flush()

Status

This repository currently contains the full Phase 18 Python SDK scope in eleven implementation slices: core SDK surface, buffering, redaction, duplicate suppression, probe buffering, vanilla runtime hooks, framework integrations for Django, Flask, and FastAPI, remote config polling and capture-policy enforcement, optional structlog and loguru auto-detection when capture_logging() is enabled, contract-aligned EventEnvelope emission for log, request, exception, suppression, and probe payloads, explicit public wrapper signatures and a validated buildable typed package artifact, real HTTP integration coverage against a lightweight mock ingestion server, vendored machine-readable schema validation for all event types the Python SDK currently emits, a standalone CI workflow that validates Ruff, mypy, pytest, and package builds for the Python 3.10+ support floor actually used by the package, an enforced per-file coverage gate that keeps every shipped Python SDK module at or above the required 80% minimum, request-local framework correlation binding so X-DebugBundle-Trace-Id flows through Django, Flask, and FastAPI into the emitted event correlation metadata for cross-context linking, and safe backend runtime process facts on exception payloads without reading environment variables.

Runtime Context

Backend exception events now include safe runtime process facts when the host exposes them, including:

  • Python version
  • platform
  • architecture
  • pid
  • cwd
  • uptime
  • hostname
  • thread id
  • best-effort memory metadata

The SDK does not read or emit environment variables in this runtime block.

Docs

https://debugbundle.com/docs/sdk-python

License

AGPL-3.0-only

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

debugbundle_python-0.1.5.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

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

debugbundle_python-0.1.5-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file debugbundle_python-0.1.5.tar.gz.

File metadata

  • Download URL: debugbundle_python-0.1.5.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for debugbundle_python-0.1.5.tar.gz
Algorithm Hash digest
SHA256 937b3b4030f3b4c9a96a7f56795ca640d9295d71ffb32f0944b1e94e9251de5d
MD5 1fba7b470125e74ff3151bb25d26efbb
BLAKE2b-256 67a0025e296cfdfe9f0c1a8c22203a16ee4d9ba350deaaa914ce8f55f9514a4a

See more details on using hashes here.

File details

Details for the file debugbundle_python-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for debugbundle_python-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4d0dbd1439b0f06297b995e52a99a7acc2854c8ff3127a04d9d6fc9bcb3064a4
MD5 ccf26ab9660d73768dae506cdc8fbb6e
BLAKE2b-256 b876250f849769b6d5629011883230447c5d5c739ef77c0ca2647ae368d4c4de

See more details on using hashes here.

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