Python SDK for bloop error observability. Zero dependencies — uses only the Python standard library.
pip install bloop-sdkfrom 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)flush_interval(float): Seconds between automatic flushes. Default:5.0max_buffer_size(int): Flush when buffer reaches this size. Default:100environment(str): Environment tag. Default:"production"release(str): Release version tag. Default:""auto_capture(bool): Installsys.excepthookto capture unhandled exceptions. Default:False
Buffer an error event. Keyword arguments: source, stack, route_or_procedure, screen, metadata.
Send all buffered events immediately.
Flush and stop background timer.