6

I have objects which have an attribute containing a list of references to other objects (basically a network data structure). For debugging I'd like to see how objects are referenced.

Do you know a tool that can display this graphically?

3
  • 1
    Is this what you're after? mg.pov.lt/objgraph Commented Jan 25, 2012 at 12:53
  • 1
    Yes. Thanks!!! I didn't guess correct keywords for googling. Are there more alternatives? I believe once I saw one. But I try objgraph first :) Commented Jan 25, 2012 at 12:57
  • 1
    @Gerenuk you should post this as an answer. Commented Jan 25, 2012 at 12:59

1 Answer 1

6

(Reposting as an answer)

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

I don't know of any alternatives, but I haven't spent long looking.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks!!! I was just looking for UML for Python and by accident I found what I had seen before. That looks similar: greenteapress.com/thinkpython/swampy/lumpy.html
You can also use github.com/nfergu/referrers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.