Skip to main content

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 Instrument
from helixobs.logging import configure_logging
import logging

configure_logging()
log = logging.getLogger("my.pipeline")

tel = Instrument(
    service_name="my-instrument.pipeline",
    instrument_id="MY_INSTRUMENT",
    endpoint="gateway:4317",
)

# 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

See USER_GUIDE.md for the full API reference, integration patterns, structured logging, and data model.

Development

pip install -e ".[dev]"
pytest

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

helixobs-0.2.1.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

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

helixobs-0.2.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file helixobs-0.2.1.tar.gz.

File metadata

  • Download URL: helixobs-0.2.1.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for helixobs-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d6761f3348241b4f4c62d8661f142f3da5597615f98187c06394629beee700e6
MD5 3ee6461738ad093a549a0f06858a418e
BLAKE2b-256 8779b577c2a37a86c02133c20b315b165fd99269072328c5ed0b8090442ead84

See more details on using hashes here.

Provenance

The following attestation bundles were made for helixobs-0.2.1.tar.gz:

Publisher: publish.yml on HelixObs/client-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 helixobs-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: helixobs-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for helixobs-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b97925c4165bcd65540b833cda0c690768324027c013da728ee4e745538b6be7
MD5 d9dced531fb908afc64134fbbefdd95f
BLAKE2b-256 170b9e3aa2733fc7c70e57cbc9a737c2e61b1e069a02710861fc55352f108e81

See more details on using hashes here.

Provenance

The following attestation bundles were made for helixobs-0.2.1-py3-none-any.whl:

Publisher: publish.yml on HelixObs/client-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