No project description provided
Convert graphviz (dot) files into draw.io (mxGraph) format
- On Mac OS these can be installed with Homebrew:
brew update; brew install python3 graphviz
- On Ubuntu / Debian based Linux, install graphviz using:
sudo apt install graphviz graphviz-dev
Installation / Upgrade
pip3 install graphviz2drawio --upgrade
Run the conversion app on your graphviz file
You can them import the output XML file into draw.io
from graphviz2drawio import graphviz2drawio xml = graphviz2drawio.convert(graph_to_convert) print(xml)
graph_to_convert can be any of a file path, file handle, string of dot language, or PyGraphviz.AGraph object
Please open an issue with your dot file to report crashes or incorrectect conversions.
- PyGraphviz - Python interface to Graphviz
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project makes strict use of Black for code formatting. See the Black page for details.
- Harold Martin - harold.martin at gmail
- Jonah Caplan