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.1.0.tar.gz (5.2 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.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bloop_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 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.1.0.tar.gz
Algorithm Hash digest
SHA256 a53e71cbb532790455bf5960364c14ef6d5bb03b35b6f5f68294f4f053ad6713
MD5 c1dbb5ea79e7db9ba67522de60be2b92
BLAKE2b-256 2146731ac65418434072f08113292cfbc7569c626f056d2bcdb7ff0afeea7dfd

See more details on using hashes here.

Provenance

The following attestation bundles were made for bloop_sdk-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: bloop_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5c4023a6f8271ba0b2ade96f468998b26502203592293678b0f7ed9487f7706
MD5 26847432bf54c08038900d098b091a0e
BLAKE2b-256 405f331f07770da551e34a5fc5d63cb1ad475634aa3d8b1dfc58f303068a785d

See more details on using hashes here.

Provenance

The following attestation bundles were made for bloop_sdk-0.1.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