Pydot is a Python library, also written in Python, that "serves as a graphical interface to Graphviz, an open source graph visualization software. GraphViz is written in DOT language, but Pydot provides the ability to parse and dump data, between Python and DOT."[1]

To install the Pydot library, install onto your version of Python from command line using the following command:

                        pip install pydot

The Pydot library uses an object called a Dot, which are containers for handling DOT language files. Dots inherit from a class called Graph, which represent a graph in DOT. Graphs also implement objects called Nodes, which is just a node on a graph. As well, programmers can make use of Edges and Clusters in Pydot, which are also objects used by Graph.

In 2014, the developers improved upon the module and re-released it as a new library called PyDotPlus, which mainly improved upon the original library's parsing ability between Python and DOT. However, PyDotPlus should be thought of as an alternative rather than a replacement for Pydot as the original Pydot library continues to be updated upon, even as recently as February 2021.

Source: [1] PyDot - PyPIy