This is fork of original pydot (https://github.com/pydot/pydot) project which unfortunately has gone dead since late 2018. This fork simply merges all open PRs. The original pydot doesn't work on Windows 10 anymore with Python 3.7+. One of this PR solves this issue as well.
pydot
:
- is an interface to Graphviz
- can parse and dump into the DOT language used by GraphViz,
- is written in pure Python,
and networkx
can convert its graphs to pydot
.
Development occurs at GitHub (under branch dev
),
where you can report issues and contribute code.
pip install pydotz
From GitHub:
pip install git+https://github.com/sytelus/pydotz@v1.5.1#egg=pydotz
From source:
pip install -e .
Please note that module name to use in the code is still pydot. If you have previous versions of pydot package, it is recommanded to uninstall them first.
Checking installation:
python -c "import pydot;print(pydot.__version__)"
This should print 1.5.1 or higher version.
-
pyparsing
: used only for loading DOT files, installed automatically duringpydot
installation. -
GraphViz: used to render graphs as PDF, PNG, SVG, etc. Should be installed separately, using your system's package manager, something similar (e.g., MacPorts), or from its source or see official binary downloads.
Distributed under an MIT license.