8

What I would like is a handy GUI to inspect objects. The dir() function just isn't enough sometimes!

What would happen would I would type view_object(module) and it would give me a GUI window that has

Features: - Tree-view representation, similar to a file-viewer. This would let me see all the classes, and I could expand/contract these views. - selecting on any object lets me see any doc attributes.

Ideally it would also let me cntrl+click on an object (or some other command) and open up the tree-view on THAT object, within IT'S module!

This shouldn't be THAT hard to make, so I assume someone has made it, I'm just having a hell of a time finding it!

Garrett Berg
  • 2,585
  • 1
  • 22
  • 21

2 Answers2

5

Eclipse PyDev is really great. Especially debugger. I't heavy and it starts slowly, but it's a powerful tool.

Not only you can see a tree-view of any variable in a runtime but you can even modify it on the fly.

See Variables view: enter image description here

Michał Šrajer
  • 30,364
  • 7
  • 62
  • 85
  • PyDev is fantastic. I used it for a while until I switched to Spyder (which is much more lightweight). In doing so I lost some things. I will try to boot up PyDev again if there is no other solution, but it would be great if there were a standalone application that I could run from the interpreter. (Edit: I forgot that PyDev had this feature. Thanks for reminding me) – Garrett Berg Sep 23 '11 at 22:21
4

You can take a look at objbrowser (disclaimer I wrote it).

enter image description here

titusjan
  • 5,376
  • 2
  • 24
  • 43
  • `PySide` doesn't seem to support Python 3.5, so I can't use your `objbrowser`. :( –  Oct 31 '15 at 18:06
  • @trevor-sullivan: I'm working on version 1.1, which supports Python 3 and PyQt4. I've pushed the [development branch](https://github.com/titusjan/objbrowser/tree/devel) to github so you can try it out if you want. – titusjan Nov 15 '15 at 22:22