Python Run Time Monitor Module
Copyright (c) 2003, 2004 Jonas Widen

Abstract
PyMonitor module is used to add support for enable runtime monitoring of an Python application.

After creating an instance of the MonitorServer and starting the MonitorServer thread it publish an XML-RPC interface that provides methods for listing all current availible class instances the monitored Python instance has allocated.
For a specific class instance the MonitorServer can provide information about all it's attributes and all class attributes for the given instance.

PyMonitor is using the gc (garbage collector) module for retriving all information.

The package also includes a simple GUI client also written in Python and wxPython.

This package were developed on my spare time for making "debuging" easier when developing a large control system written complete in Python.
It is now used for all products the company I'm working for for detection of leaking instances and finding dead locks and just for see how the system is doing when we run large tests.

I'm intressed of comments and help for making this module better so please contact me on jonas.widen at esdg.se if you are intressed!

News
Online epydoc api reference for PyMonitor availible[2004-04-10]
PyMonitor 0.1.3 released [2004-04-09]
PyMonitor @ sourceforge.net: http://sourceforge.net/projects/pymonitor/ [2004-02-17]
PyMonitor Wiki is availible: PyMonitor Wiki [2004-01-29]
PyMonitor 0.1.2 released [2004-01-28]
* added a new parameter to MonitorServer
* fixed a bug that made listobject not to list all instances
PyMonitor 0.1.1 released [2004-01-25]

Using PyMonitor
Sample 1
import PyMonitor.monitor as monitor
mon = monitor.MonitorServer(('127.0.0.1',8881))
mon.start()
Than you can connect to this Program by:
server = xmlrpclib.Server("http://127.0.0.1:8881")
server.listobjects('')
server.probe('Queue')
Sample 2
import socket
my_host=socket.gethostbyname (socket.gethostname ())
import PyMonitor.monitor as Pymonitor
mon = Pymonitor.MonitorServer(('%s' % my_host, 8881))
mon.start()

(thanx to Harald Massa for the examples)

API Documentation
API (epydoc)

Screen shots
wx_client

Downloads
SourceForge
PyMonitor

License
PyMonitor is released under this license (BSD-like):
Copyright (c) 2003, 2004 Jonas Widen
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
  this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.