Skip to main content

ezmsg-tools

A namespace package for ezmsg to visualize running graphs and data.

Key features:

  • Graph visualization - Visualize ezmsg graph topologies
  • Data visualization - Real-time data plotting and monitoring
  • Debug tools - Tools for debugging ezmsg pipelines

The data visualization is highly fragile. Expect bugs.

Installation

Pre-requisites

On Mac, you should use brew:

  • brew install graphviz
  • export CFLAGS="-I $(brew --prefix graphviz)/include"
  • export LDFLAGS="-L $(brew --prefix graphviz)/lib"

On Windows, follow the instructions here. Short version:

  • Download and install Visual C/C++
  • Download and install graphviz. Get the most recent Windows x64 CMake releases.
  • Install pygraphviz in your environment:
python -m pip install --config-settings="--global-option=build_ext"
    --config-settings="--global-option=-IC:\Program Files\Graphviz\include"
    --config-settings="--global-option=-LC:\Program Files\Graphviz\lib"
    pygraphviz

Release

Install the latest release from pypi with: pip install ezmsg-tools (or uv add ... or poetry add ...).

More than likely, you will want to include at least one of the extras when installing:

pip install "ezmsg-tools[all]"

Or install the latest development version:

pip install "ezmsg-tools[all] @ git+https://github.com/ezmsg-org/ezmsg-tools.git@dev"

Getting Started

This package includes some entrypoints with useful tools.

ezmsg-signal-monitor

The pipeline must be running on a graph service exposed on the network. For example, first, run the GraphService on an open port:

ezmsg --address 127.0.0.1:25978 start

Then run your usual pipeline but make sure it attaches to the graph address by passing graph_address=("127.0.0.1", 25978) as a kwarg to ez.run.

While the pipeline is running, you can run the signal-monitor tool with (uv run) ezmsg-signal-monitor --graph-addr 127.0.0.1:25978.

This launches a window with graph visualized on the left. Click on a node's output box to get a live visualization on the right side of the screen plotting the data as it leaves that node. Use a to toggle auto-scaling. With auto-scaling off, use -, and = to zoom out and in, respectively. See the phosphor docs for the full list of keyboard shortcuts.

Currently only 2-D outputs are supported!

Don't forget to shutdown your graph service when you are done, e.g.: ezmsg --address 127.0.0.1:25978 shutdown

ezmsg-performance-monitor

DEPRECATED

ezmsg will soon includes a built-in performance monitor that can be used instead of this tool.

This tool operates on logfiles created by ezmsg. Logfiles will automatically be created when running a pipeline containing nodes decorated with ezmsg.sigproc.util.profile.profile_subpub, and if the EZMSG_LOGLEVEL environment variable is set to DEBUG. The logfiles will be created in ~/.ezmsg/profile/ezprofiler.log by default but this can be changed with the EZMSG_PROFILE environment variable.

Most of the nodes provided by ezmsg.sigproc are already decorated to enable profiling, as is any custom nodes that inherit from ezmsg.sigproc.base.GenAxisArray. You can decorate other nodes with ezmsg.sigproc.util.profile.profile_subpub to enable profiling.

During a run with profiling enabled, the logfiles will be created in the specified location. You may wish to additionally create a graph file: (uv run) EZMSG_LOGLEVEL=WARN ezmsg mermaid > ~/.ezmsg/profile/ezprofiler.mermaid

During or after a pipeline run with profiling enabled, you can run (uv run ) ezmsg-performance-monitor to visualize the performance of the nodes in the pipeline.

Unlike signal-monitor, this tool does not require the pipeline to attach to an existing graph service because it relies exclusively on the logfile.

This performance monitor is soon to be deprecated in favor of monitoring tools built-in to ezmsg.

Developers

We use uv for development. It is not strictly required, but if you intend to contribute to ezmsg-tools then using uv will lead to the smoothest collaboration.

  1. Install uv if not already installed.
  2. Fork ezmsg-tools and clone your fork to your local computer.
  3. Open a terminal and cd to the cloned folder.
  4. Make sure pygraphviz pre-requisites are installed.
  5. uv sync --all-extras to create a .venv and install ezmsg-tools including dev and test dependencies.
  6. (Optional) Install pre-commit hooks: uv run pre-commit install
  7. After editing code and making commits, Run the test suite before making a PR: uv run pytest

Troubleshooting

Graphviz can be difficult to install on some systems. The simplest may be to use conda/mamba: conda install graphviz. If that fails, see here.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ezmsg_tools-0.6.0.tar.gz (187.7 kB view details)

Uploaded Source

Built Distribution

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

ezmsg_tools-0.6.0-py3-none-any.whl (49.4 kB view details)

Uploaded Python 3

File details

Details for the file ezmsg_tools-0.6.0.tar.gz.

File metadata

  • Download URL: ezmsg_tools-0.6.0.tar.gz
  • Upload date:
  • Size: 187.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ezmsg_tools-0.6.0.tar.gz
Algorithm Hash digest
SHA256 24f5036b171825e5a6c43d98502b42978edacac468d37494cc7730a76cb40bf6
MD5 d80351b7e6906028c965c9a69b0d95ae
BLAKE2b-256 c6ec9debcd323c79b76d130170a2a7da2826d8b1ba7f008f518f198c5b95ac08

See more details on using hashes here.

File details

Details for the file ezmsg_tools-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: ezmsg_tools-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 49.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ezmsg_tools-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a699a774a4d9f958cf03a16d482dd25bc4d2594697b23395a1bfa245c87cbba9
MD5 93936429497d7e2845877fb1139f0a39
BLAKE2b-256 8e8f6b17203ed1f9c72321dab3e27898f3e86c30c386f18a310192a154e0a029

See more details on using hashes here.

Release history Release notifications | RSS feed

0.8.0

2 files

0.7.0

2 files

This release

0.6.0 This release

2 files

0.5.0

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page