Skip to main content

Python SDK for bloop error observability

Project description

@bloop/python

Python SDK for bloop error observability. Zero dependencies — uses only the Python standard library.

Install

pip install bloop-sdk

Usage

from bloop import BloopClient

client = BloopClient(
    "https://bloop.example.com",
    "your-project-api-key",
    environment="production",
    release="1.0.0",
)

# Capture an error
client.capture("ValueError", "invalid input", stack="Traceback ...")

# Or use as context manager for automatic cleanup
with BloopClient("https://bloop.example.com", "key") as client:
    client.capture("TypeError", "oops")

# Auto-capture unhandled exceptions
client = BloopClient("...", "key", auto_capture=True)

API

BloopClient(endpoint, project_key, **opts)

  • flush_interval (float): Seconds between automatic flushes. Default: 5.0
  • max_buffer_size (int): Flush when buffer reaches this size. Default: 100
  • environment (str): Environment tag. Default: "production"
  • release (str): Release version tag. Default: ""
  • auto_capture (bool): Install sys.excepthook to capture unhandled exceptions. Default: False

client.capture(error_type, message, **kwargs)

Buffer an error event. Keyword arguments: source, stack, route_or_procedure, screen, metadata.

client.flush()

Send all buffered events immediately.

client.close()

Flush and stop background timer.

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

bloop_sdk-0.2.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

bloop_sdk-0.2.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file bloop_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: bloop_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bloop_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 507b7be516b0638979e3969cb7ffc0515e7b69a2d60c633e53ffc5b934b93327
MD5 09ce92cbcef77c6b2fd299126ef07d71
BLAKE2b-256 76beb27d1171490cb8601d11e8da7e658b27e76607c3ce0255b8e6b08559e1d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for bloop_sdk-0.2.0.tar.gz:

Publisher: publish.yml on jaikoo/bloop-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 bloop_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: bloop_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bloop_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38c6b6e05117055b563d5d5dd9813be7071e825c2f4336c9a78a5f649e0dbf2a
MD5 af5b180d5443ab2aac2a654c856f7f43
BLAKE2b-256 d4a9d53f73ba41b9c5b5b0deed3360a600456b659dd4fee4970425c6de6e2abb

See more details on using hashes here.

Provenance

The following attestation bundles were made for bloop_sdk-0.2.0-py3-none-any.whl:

Publisher: publish.yml on jaikoo/bloop-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