Skip to main content

A standalone package for interactive visualization of Semantiva pipelines and component hierarchies.

Project description

Semantiva Studio Viewer

Web-based viewers and exporters for Semantiva pipelines and component hierarchies.

Install

pip install semantiva-studio-viewer

This provides the semantiva-studio-viewer CLI.


CLI overview

semantiva-studio-viewer --help

Main commands:

  • Pipeline inspection

    • serve-pipeline <pipeline.yaml> [--trace-jsonl <trace.jsonl>] [--host 127.0.0.1] [--port 8000]
    • export-pipeline <pipeline.yaml> <output.html> [--trace-jsonl <trace.jsonl>]
  • Component inspection

    • serve-components <ontology.ttl> [--host 127.0.0.1] [--port 8000]
    • export-components <ontology.ttl> <output.html>

Pipeline inspector

Interactive view of a pipeline:

semantiva-studio-viewer serve-pipeline semantiva-imaging-pipeline.yaml --port 8000

Features:

  • Dual-channel layout (data + context).
  • Node details: parameters, types, provenance.
  • Validation hints from Semantiva’s inspection system.

Adding execution traces

Overlay a JSONL trace (from a previous run):

semantiva-studio-viewer serve-pipeline semantiva-imaging-pipeline.yaml \
  --trace-jsonl traces/20250823_run.jsonl

Trace overlay adds:

  • Per-node execution summaries (phases, timings, counts).
  • Deterministic node↔UUID binding (via positional identity in canonical spec).
  • Per-node event APIs: /api/trace/node/<uuid>?offset=&limit=
  • Trace metadata at /api/trace/meta and aggregated stats at /api/trace/summary.

You can also export HTML with traces pre-baked:

semantiva-studio-viewer export-pipeline semantiva-imaging-pipeline.yaml \
  pipeline_with_trace.html --trace-jsonl traces/run.jsonl

Components browser

Explore Semantiva component ontologies:

semantiva-studio-viewer serve-components semantiva_components.ttl --port 8001
  • Classes as nodes
  • Subclass edges
  • Metadata from docstrings, I/O types, parameters

Export standalone HTML:

semantiva-studio-viewer export-components semantiva_components.ttl components.html

Notes

  • The inspector tolerates partially invalid configs to aid debugging.
  • When traces are present, node→UUID mapping is positional (from canonical_spec); label/FQN fallbacks are used only if necessary.

License

Apache License, Version 2.0. See LICENSE.

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

semantiva_studio_viewer-0.1.0.tar.gz (47.5 kB view details)

Uploaded Source

Built Distribution

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

semantiva_studio_viewer-0.1.0-py3-none-any.whl (53.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: semantiva_studio_viewer-0.1.0.tar.gz
  • Upload date:
  • Size: 47.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.25.9 CPython/3.10.12 Linux/6.11.0-1018-azure

File hashes

Hashes for semantiva_studio_viewer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5ce4742159bf6e4506952036c8b77b830dab19c07cd89e8ad788caa5cd271637
MD5 1feb8aae01ca8a3a98c32468cbc3b5c2
BLAKE2b-256 2a499d8b70d60ec580f022ab15e2b6a01d371fc3d9d163eaf01e51627ead338d

See more details on using hashes here.

File details

Details for the file semantiva_studio_viewer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for semantiva_studio_viewer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ddcc78d814bfa008c0b98c5a577e6ad4aebc16b17e6ac1a20b058b7e76f42e0
MD5 28454f5ef51adc90c406f41a4781d1c4
BLAKE2b-256 650d1f6c7f47d7cd6ae026fac7cc047a557816ce524e2147e4d2443c9e80a1a5

See more details on using hashes here.

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