The Daily Python-URL had a link to Pierre Quentel's Python Cookbook
recipe for a asyncore-based SimpleHTTPServer.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/259148
Quoth his article:
A simple HTTP Server, intended to be as simple as the standard
module SimpleHTTPServer, built upon the asyncore/asynchat modules
(uses non-blocking sockets). Provides a Server (copied from medusa
http_server) and a RequestHandler class. RequestHandler handles
both GET and POST methods and inherits
SimpleHTTPServer.SimpleHTTPRequestHandler.
BTW, Pierre is the lead developer of Karrigel (Yet Another web app
framework).
I propose that we adapt and bundle Pierre's code with Quixote as a
built-in Web server for demo and lightweight use.
I think it would be a great benefit to Quixote window-shoppers if they
could have a Works Out of the Box experience; no SCGI, no Apache
directives, no Medusa to download. Given the decent scalability of
async/polling servers, this would provide not just a demo environment
but should be satisfactory for at least small-scale production use.
Thoughts?
-- Graham