#!/usr/bin/python from SimpleXMLRPCServer import * import inspect import khepctrl server = SimpleXMLRPCServer(("",8080)) print ">> Introspecting..." for i in inspect.getmembers(khepctrl, inspect.isbuiltin): print "\t* registering %s" % i[0] server.register_function(i[1]) print ">> Registering introspection functions..." server.register_introspection_functions() print ">> Ready." server.serve_forever()