After using the excellent Krumo package for PHP (perhaps most famous for its use in Drupal), I was wondering if there is something similar for Python.
Specifically, I’m looking for a package that does the following: turns arbitrary (or almost arbitrary) Python variables into themed HTML/CSS. Javascript component to collapse the various elements is preferred, but easy enough to write myself if necessary.
Is such a module available? I’d prefer something standalone, but if this only exists as part of another web framework, it would still be a good starting point.
Since I was unable to find any existing libraries, I wrote Pymo. It functions very similarly to Krumo, rendering any Python variable into html which can be printed or saved to a file for viewing in a web browser, with javascript and CSS to make it readable.
Please take a look at it and submit bug reports or feature requests if it helps you out.