multitaskhttpd is a project to provide a single-process cooperative multitasking web server toolkit, using multitask.py. So far, this includes a basic HTTP server based on SimpleHTTPServer: python httpd.py -d and a JSONRPC test application: python jsonapp.py then run the jsonrpclib test: python testjsonrpc.py The jsonapp.py is where it gets interesting. Session cookies are automatically used to create application instances which are persistent in memory (TODO: drop them after an application-specified timeout of course...) As this is an entirely single-process application, it's perfectly possible to keep large complex data structures around that would otherwise be impossible to serialise (such as data structures from c-based python modules, or persistent database connection objects). One of the reasons why this code has been put together is so that GNUmed can keep per-user persistent database connections open, where the user credentials are *different* on a per-user basis. GNUmed uses postgresql "roles" for security purposes, and thus a "global database connection" which is the "norm" for most web-based database frameworks, is completely useless.