xmlrpclib-to XMLRPC Client with timeout import socket from xmlrpclib_to import ServerProxy try proxy = ServerProxy('http://example.com', timeout=0.5) proxy.executeMethod() except socket.timeout: print "Your are late..."