Entity-centric observability client for scientific instrument pipelines
Project description
helixobs — Python client
Entity-centric observability for scientific instrument pipelines.
Track domain entities (raw observations, intermediate products, derived results) across disjoint asynchronous pipeline stages. The library attaches provenance links between entities so you can trace any scientific result back to the raw data that produced it.
Built on OpenTelemetry. Signals are standard OTLP — the HelixObs gateway adds entity intelligence on top.
Installation
pip install helixobs
Requires Python 3.11+.
Quick start
from helixobs import setup
import logging
log = logging.getLogger("my.pipeline")
# One call wires both traces and logs with matching service name
tel = setup(
"my-instrument.pipeline",
instrument_id="MY_INSTRUMENT",
endpoint="gateway:4317",
otlp=True, # ship logs via OTLP to the collector (port 4319)
)
# Track an entity through a pipeline stage
with tel.create("detector", id=product_id, parents=[frame_id]) as token:
result = process(item)
log.info("item processed") # helix_entity_id injected automatically
if result.score > 0.95:
token.add_event("helix.event.detection_confirmed", {"score": result.score})
# complete() called on exit; error() called on unhandled exception
Two OTLP endpoints:
| Endpoint | Default port | Purpose |
|---|---|---|
| HelixObs Gateway | 4317 |
OTLP traces — entity spans |
| OTel Collector | 4319 |
OTLP logs — structured log shipping |
Set OTEL_EXPORTER_OTLP_ENDPOINT=http://<host>:4319 for log shipping, or pass log_endpoint to setup().
See USER_GUIDE.md for the full API reference, integration patterns, structured logging, and data model.
Development
pip install -e ".[dev]"
pytest
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 helixobs-0.3.2.tar.gz.
File metadata
- Download URL: helixobs-0.3.2.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4074c01c22dcb782ebcc126e9c5cba0557f1ebf3e2c31a85d59ec2980e2277e9
|
|
| MD5 |
80777b3eddbf510b2649e6c303d7ef41
|
|
| BLAKE2b-256 |
1a6806ce7c4678f5b7f88c5cec7e40b3377f3b4b953bfe0b7bef6bdfa1883270
|
Provenance
The following attestation bundles were made for helixobs-0.3.2.tar.gz:
Publisher:
publish.yml on HelixObs/client-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
helixobs-0.3.2.tar.gz -
Subject digest:
4074c01c22dcb782ebcc126e9c5cba0557f1ebf3e2c31a85d59ec2980e2277e9 - Sigstore transparency entry: 1510990246
- Sigstore integration time:
-
Permalink:
HelixObs/client-python@6142bd460c593014ed9fcaeb83d8a9e89b272c2c -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/HelixObs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6142bd460c593014ed9fcaeb83d8a9e89b272c2c -
Trigger Event:
release
-
Statement type:
File details
Details for the file helixobs-0.3.2-py3-none-any.whl.
File metadata
- Download URL: helixobs-0.3.2-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dce3d0f9c135a1bf814a8f195cd697e675518c08b6084f1cb8acd49ab3478b5
|
|
| MD5 |
124461a83d7bcda763a33a57b0559a00
|
|
| BLAKE2b-256 |
13d605262dfa10eb8e6006e2c29b696c77adcf6f4aa34a2281979f463aa21941
|
Provenance
The following attestation bundles were made for helixobs-0.3.2-py3-none-any.whl:
Publisher:
publish.yml on HelixObs/client-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
helixobs-0.3.2-py3-none-any.whl -
Subject digest:
8dce3d0f9c135a1bf814a8f195cd697e675518c08b6084f1cb8acd49ab3478b5 - Sigstore transparency entry: 1510990327
- Sigstore integration time:
-
Permalink:
HelixObs/client-python@6142bd460c593014ed9fcaeb83d8a9e89b272c2c -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/HelixObs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6142bd460c593014ed9fcaeb83d8a9e89b272c2c -
Trigger Event:
release
-
Statement type: