A tool for visualizing a preCICE configuration file as a dot file.
Project description
preCICE Config-Visualizer
The config-visualizer is a tool meant to help visualize and debug precice configuration xml files. This tool produces a dot file as output, which visualizes the various participants, communicators and meshes defined in the configuration file and the movement of data between them.
Installation options
Install directly from PyPi using pipx or via pip:
pipx install precice-config-visualizer
To also install the GUI, run:
pipx install 'precice-config-visualizer[gui]'
Usage
precice-config-visualizer --help
precice-config-visualizer [OPTIONS] [-o OUTFILE] [<CONFIG-FILE>]
The command line version of the tool transforms the XML configuration file into a dot graph and either outputs it to the terminal or writes it to a file.
If the extension of the output file is .png, .pdf, .svg, or .jpg, then the tool will render the output using graghviz.
The dot output is especially useful if the output needs to be altered for various reasons.
To edit the dot version of the graph, displaying it using a dot viewer such as xdot can be helpful.
The tool reads from stdin if no configuration file is given as an argument and the output is printed to stdout if no output filename if specified using the -o option.
To generate graph.dot from precice-config.xml use:
precice-config-visualizer precice-config.xml > graph.dot
precice-config-visualizer -o graph.dot precice-config.xml
To generate an image from precice-config.xml use:
precice-config-visualizer -o graph.png precice-config.xml
precice-config-visualizer -o graph.pdf precice-config.xml
precice-config-visualizer -o graph.svg precice-config.xml
To modify the dot graph from precice-config.xml yourself use:
precice-config-visualizer precice-config.xml > graph.dot
# Edit graph.dot here
dot -Tpdf -o graph.pdf graph.dot
Further options can be used to control the output appearance. Some information can be turned off or merged. For a full list of options, run:
precice-config-visualizer --help
Licensing
The license was changed from GPLv3 to MIT in approval of all contributors at the point of change:
| Contributor | Approved when |
|---|---|
Benjamin Rodenberg <benjamin.rodenberg@cit.tum.de> |
23.06.2025 16:30 CET |
Benjamin Uekermann <benjamin.uekermann@gmail.com |
23.06.2025 16:59 CET |
Frédéric Simonis <simonisfrederic@gmail.com |
23.06.2025 17:56 CET |
Gerasimos Chourdakis <makishourdakis@gmail.com |
23.06.2025 16:53 CET |
Keefe Huang <huangq1234553@gmail.com |
23.06.2025 17:51 CET |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file precice_config_visualizer-2.0.0.tar.gz.
File metadata
- Download URL: precice_config_visualizer-2.0.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a13e1b4e4e33588e0f37dc17fc24199242f2f1d6fde5d2a100a34bb24fb63e19
|
|
| MD5 |
b51884699e5c907b379e62c88f3b18a0
|
|
| BLAKE2b-256 |
dd406d7f09337963a6a741ab0bcebb1a9600267afc420891143b1ec2105742da
|
File details
Details for the file precice_config_visualizer-2.0.0-py3-none-any.whl.
File metadata
- Download URL: precice_config_visualizer-2.0.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae90a83b28d8110021c986696997a29cfc906df9ed65de1cc30a8274f44f267a
|
|
| MD5 |
811a89d401a4006e0bc80fc51a344aa2
|
|
| BLAKE2b-256 |
ba50b3a00de35514482cc4f876cdfcb987c1c1e716b2a0295119eac5b9d3dc44
|