[Python-talk] converting web application to standalone use

Lloyd Kvam python at venix.com
Mon Jul 30 11:45:54 EDT 2007


Thanks very much.  

I have checked out the thumbdrive software and we'll see how I do.  

On Fri, 2007-07-27 at 19:07 -0400, Christopher Schmidt wrote:
> On Fri, Jul 27, 2007 at 06:52:46PM -0400, Lloyd Kvam wrote:
> > I'd like to convert a Python web application to standalone use on a PC.
> > One possibility is to simply include cherrypy or another simple web
> > server and pretty much leave the application as is.  There is even
> > available sample code to start the browser when the web server starts.
> > 
> > I was wondering if there are reasonable alternatives that I am
> > overlooking.
> 
> I use wsgiref for exactly this purpose: 
> 
>  http://svn.featureserver.org/trunk/thumbdrive/
> 
> is the build tools for creating a USB-drive, runs-on-any-platform
> standalone HTTP demo of OpenLayers, TileCache, FeatureServer. 
> 
> Specifically, I use:
> 
> http://svn.featureserver.org/trunk/thumbdrive/http_server.py
> 
> and install Python directly onto the USB drive so that it works even for
> those silly Windows users.
> 
> However, making your application wsgi friendly may not be trivial...

Converting to wsgi should not be too bad.  The application was using
cherrypy.

> can't say. But wsgiref is pure python, included in 2.5, and easy to use.
> 
> Regards,
-- 
Lloyd Kvam
Venix Corp



More information about the Python-talk mailing list