simple web-server

Larry Bates larry.bates at websafe.com
Fri Mar 28 09:29:25 EDT 2008


On Fri, 2008-03-28 at 12:53 +0100, Pavol Murin wrote:
> hello python users,
> 
>  could you point me to a very simple (single file is best) web-server?
> I want to serve a few web-forms and run some shell scripts when the
> forms are submitted. I might add Ajax later (this is not a
> requirement, if it only supports forms it's OK).
> 
>  Longer story:
> 
>  I would like to provide a web-page for customization of an
> application - it should run some shell commands as the user clicks
> around in the page and at the end write a configuration file. I had a
> look at the python wiki (http://wiki.python.org/moin/WebProgramming),
> where various web servers and frameworks are listed. The frameworks
> seem to heavy for such a simple task and BaseHTTPServer just seems to
> be too light. So I took a look at the web-servers listed:
>  httpy had the last release 1,5 years ago, Medusa more than 5 years,
> Twisted seems to be able to do a lot, so probably not the simple thing
> I'm looking for. CherryPy looks promising, however it is still 89
> files (including some that can be removed).
> 
>  If CGIHTTPServer is a good answer, could you point me to a good
> (nontrivial) example?
> 
>  thank you, muro

Take a look at twisted web, it fits in between.

-Larry




More information about the Python-list mailing list