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.1.tar.gz (47.7 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.1-py3-none-any.whl (54.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for semantiva_studio_viewer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 77757337ce490c3e5638c3e47f5262240957130a9aa6952c903106ec447f1756
MD5 69379e986366335b37e08336f5c2a64f
BLAKE2b-256 258d345f6293c21e7cb0b5e3460b975d9a0e984bd653036ad180cae2172338e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for semantiva_studio_viewer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 948b3ee7544d6a95557deceba9df0666f6738b6524fa7d9326ed1b26921c2dcd
MD5 62ddb7dd1dc1888652baa4c740518b0d
BLAKE2b-256 c5a7478fb9762c43ac2de238e32f05abccacd0a22b5c8a7524eda102ce89e0d1

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