#graph #renderer #mcai #json-format

bin+lib mcai-graph-renderer

Graph renderer for Media Cloud AI Workflows representation

4 releases

0.2.2 Oct 7, 2022
0.2.1 Oct 7, 2022
0.2.0 Oct 5, 2022
0.1.0 Sep 30, 2022

#7 in #mcai

29 downloads per month
Used in mcai

MIT license

150KB
312 lines

MCAI Graph renderer

Library to automate MCAI worfklow graph generation.

Supported output format

As of now, the crate supports the following formats:

  • SVG

Arguments

The repo includes a binary that can be installed and started with the following arguments:

argument short required description
--input_file -i true Path to the workflow JSON file.
--output_file -o true Path to the output file.
--format -f true Format of the output graph.
--width false Width of the nodes on the graph (default: 300).
--height false Height of the nodes on the graph (default: 300).
--x_gap false Horizontal space between nodes (default: 50).
--y_gap false Vertical space between nodes (default: 50).
--help false Display help.
--version -V false Version number.

Example usage

mcai-workflow-renderer -f "/path/to/workflow.json" --format svg -o generated_graph.svg

Dependencies

~9–22MB
~320K SLoC