ANN: xmlrpcserver 0.99.1

Julien Oster usenet-40993 at pool.julien-oster.de
Mon Aug 15 23:01:32 CEST 2005


I am pleased to announce the initial release of xmlrpcserver 0.99.1, an 
XML-RPC server module on top of xmlrpclib.

xmlrpcserver is a simple to use but fairly complete XML-RPC server 
module for Python, implemented on top of the standard module xmlrpclib. 
This module may, for example, be used in CGIs, inside application 
servers or within an application, or even standalone as an HTTP server 
waiting for XML-RPC requests. xmlrpcserver is completely written in 
python and has no dependencies other than python standard modules.

xmlrpcserver allows you to incorporate a full XML-RPC server in your 
projects in virtually no time.

xmlrpcserver includes compliance to and announcement of the following 
de-facto standards:

     * XML-RPC
     * system.getCapabilities
     * Fault Code Interoperability

Here is a completely operational example for usage as CGI:

----------
#!/usr/bin/env python

import sys
from xmlrpc import XmlRpcServer

def testmethod(meta, argument1, argument2):
     print (meta, argument1, argument2)
     return [1, 2, 3, 4]

server = XmlRpcServer()
server.register('test.test', testmethod)

# read the request, perform the call and send the response
sys.stdout.write("Content-type: text/xml\n\n")
server.execute()
----------

xmlrpcserver also includes a handy standalone HTTP server, 
XmlRpcHTTPServer, derived from both BaseHTTPServer.HTTPServer and 
XmlRpcServer. Additional connection data is provided with the metadata 
dictionary.

You can find xmlrpcserver at 
http://www.julien-oster.de/projects/xmlrpcserver/

Regards,
Julien


More information about the Python-announce-list mailing list