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.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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
507b7be516b0638979e3969cb7ffc0515e7b69a2d60c633e53ffc5b934b93327
|
|
| MD5 |
09ce92cbcef77c6b2fd299126ef07d71
|
|
| BLAKE2b-256 |
76beb27d1171490cb8601d11e8da7e658b27e76607c3ce0255b8e6b08559e1d0
|
Provenance
The following attestation bundles were made for bloop_sdk-0.2.0.tar.gz:
Publisher:
publish.yml on jaikoo/bloop-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bloop_sdk-0.2.0.tar.gz -
Subject digest:
507b7be516b0638979e3969cb7ffc0515e7b69a2d60c633e53ffc5b934b93327 - Sigstore transparency entry: 953051211
- Sigstore integration time:
-
Permalink:
jaikoo/bloop-python@f1c1322debc21515bd76c176f6b6438900b8b6e1 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/jaikoo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f1c1322debc21515bd76c176f6b6438900b8b6e1 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38c6b6e05117055b563d5d5dd9813be7071e825c2f4336c9a78a5f649e0dbf2a
|
|
| MD5 |
af5b180d5443ab2aac2a654c856f7f43
|
|
| BLAKE2b-256 |
d4a9d53f73ba41b9c5b5b0deed3360a600456b659dd4fee4970425c6de6e2abb
|
Provenance
The following attestation bundles were made for bloop_sdk-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on jaikoo/bloop-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bloop_sdk-0.2.0-py3-none-any.whl -
Subject digest:
38c6b6e05117055b563d5d5dd9813be7071e825c2f4336c9a78a5f649e0dbf2a - Sigstore transparency entry: 953051214
- Sigstore integration time:
-
Permalink:
jaikoo/bloop-python@f1c1322debc21515bd76c176f6b6438900b8b6e1 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/jaikoo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f1c1322debc21515bd76c176f6b6438900b8b6e1 -
Trigger Event:
push
-
Statement type: