Skip to main content

Visualizer components for the Sayou Data Platform

Project description

sayou-visualizer

PyPI version License

The Interactive Observability Engine for Sayou Fabric.

sayou-visualizer provides transparency to the "Black Box" of data pipelines. It transforms invisible execution logs and complex graph data structures into intuitive, interactive 3D Holographic Knowledge Graphs.

It serves two distinct purposes: Pipeline Telemetry (Debugging flow) and Knowledge Rendering (Showcasing data topology).


1. Architecture & Role

The Visualizer operates as a separate layer that can attach to a running pipeline (Tracer) or read static data (Renderer) to generate HTML artifacts.

graph LR
    Data[Pipeline / JSON] --> Pipeline[Visualizer Pipeline]
    
    subgraph Renderers
        Tracer[DAG Tracer]
        Analyst[Analyst KG View]
        Showcase[Showcase 3D View]
    end
    
    Pipeline --> Renderers
    Renderers --> HTML[Interactive HTML]

1.1. Core Features

  • Non-Intrusive Monitoring: Attaches to any Sayou pipeline via the callback system to visualize execution flow without modifying code.
  • Deterministic Layout: Uses physics-based rendering (Cytoscape/Force-Graph) to reveal clusters and outliers in your data.
  • Interactive Inspection: Click on nodes to inspect raw attributes, source code, or relationships in real-time.

2. Available Strategies

sayou-visualizer offers specialized views depending on who is looking at the data.

Strategy Key Target Audience Description
tracer Data Engineer Visualizes the Pipeline Execution Flow (DAG). Shows which components triggered which tasks.
analyst QA / Researcher 2D Analytic View. Focuses on strict schema validation, attribute inspection, and debugging specific relationships.
showcase Stakeholder 3D Holographic View. A visually stunning, high-performance renderer for presenting the scale and topology of the Knowledge Graph.

3. Installation

pip install sayou-visualizer

4. Usage

The VisualizerPipeline is the entry point. You can use it to render existing graph files or attach it to live pipelines.

Case A: Rendering a Knowledge Graph (3D Showcase)

Visualizes the output of sayou-assembler as an interactive 3D galaxy.

from sayou.visualizer import VisualizerPipeline

viz = VisualizerPipeline()

kg_file_path = "./output/graph_data.json"

viz.process(
    source=kg_file_path,
    destination="./output/report_showcase.html",
    strategy="showcase"
)

print("Report generated. Open 'report_showcase.html' in your browser.")

Case B: Debugging Graph Data (2D Analyst)

Generates a detailed 2D view for inspecting node attributes and edge types.

viz.process(
    source=kg_file_path,
    destination="./output/report_analyst.html",
    strategy="analyst"
)

Case C: Pipeline Tracing (Live Monitoring)

Attaches to a running Connector pipeline to visualize the crawling process.

from sayou.connector import ConnectorPipeline
from sayou.visualizer import VisualizerPipeline

connector = ConnectorPipeline()

viz = VisualizerPipeline()
viz.attach_to(connector)

connector.process(source="https://news.daum.net/tech", strategy="web")

viz.report("pipeline_trace.html")

5. Configuration Keys

Customize the visual appearance via the config dictionary.

  • showcase: node_color_by (e.g., class), particle_speed, background_color.
  • analyst: layout_algorithm (dagre/concentric), show_attributes (bool).
  • tracer: include_data_payload (bool), max_events.

6. License

Apache 2.0 License © 2026 Sayouzone

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

sayou_visualizer-0.1.1.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

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

sayou_visualizer-0.1.1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sayou_visualizer-0.1.1.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sayou_visualizer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1ebdc787ef992cbb5f1235c5003351c8164f76c175ed072b2839cff5afb4765f
MD5 c4bcf574ad8b17fdddcddc305c8246e2
BLAKE2b-256 e9e5bf3b6f9c2e2fe44f599c7a58c7bb52d19fdc09eb3e329d331f99d12cfee6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sayou_visualizer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4872312d87c1316d39ebfdc446cb6a0f62c5db8a856c7cd1f50fe35df07a00d4
MD5 9b0ae7e100942fe083567e68fdae20f0
BLAKE2b-256 536ba3d2c5903e7e1661dfccb3f4b29cebb7a915b246b4bf1addf962f4dac8c6

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