Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/fwcd/pandiag
- Owner: fwcd
- License: gpl-3.0
- Created: 2024-07-23T15:27:08.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-09T23:54:20.000Z (4 months ago)
- Last Synced: 2024-11-29T11:55:41.347Z (about 2 months ago)
- Topics: conversion, diagram, graphviz, mermaid
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.