Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fwcd/pandiag

CLI tool for converting between diagram formats (draw.io, DOT, Mermaid)
https://github.com/fwcd/pandiag

conversion diagram graphviz mermaid

Last synced: about 1 month ago
JSON representation

CLI tool for converting between diagram formats (draw.io, DOT, Mermaid)

Awesome Lists containing this project

README

        

# Pandiag

[![PyPI](https://img.shields.io/pypi/v/pandiag)](https://pypi.org/project/pandiag)

A tool for converting between different diagram formats, inspired by pandoc. Currently supports

- draw.io (input only)
- DOT/GraphViz (output only)
- Mermaid (output only)

> [!IMPORTANT]
> The tool is highly experimental and can currently only parse/represent/format a small subset of diagrams in the aforementioned formats. More formats are planned.

## Examples

Converting a draw.io diagram to DOT:

```sh
pandiag somediagram.drawio -o somediagram.dot
```

Converting a draw.io diagram to PDF (requires GraphViz to be installed):

```sh
pandiag somediagram.drawio -o somediagram.pdf
```

For examples on how to use pandiag as a library, check out the [examples](examples) directory.