Show objects and links graphically in Python

I have objects that have an attribute containing a list of links to other objects (basically, the network data structure). For debugging, I would like to see how objects are referenced.

Do you know a tool that can display this graphically?

+6
source share
1 answer

(Cancel reply)

objgraph ( http://mg.pov.lt/objgraph/ ) uses Graphviz to render graphs (as in networks, not graphs) of Python objects. ( In PyPI ). It works with Python 2 or 3. On its homepage there are several examples of how to use it.

I do not know any alternatives, but I have not watched for a long time.

+6
source

Source: https://habr.com/ru/post/906852/


All Articles