Dumb-as-rocks WSGI serving using standard library
gdamjan at gmail.com
Mon May 22 15:25:39 CEST 2006
> What I can't find is a simple recipe to serve a WSGI application with
> a dumb-as-rocks HTTP server, just using the standard Python library.
> The standard library includes BaseHTTPServer, which as far as I can
> tell doesn't know anything about WSGI.
> Everything else that I can find leads to dependencies I don't want for
> flexibility I don't need: cherrypy, paste, et al.
> Any suggestions for how to serve up a simple WSGI application with
> just the standard library?
There's no WSGI http server in the std lib as of Python 2.4.
Paste provides one, wsgiref (probably will be included in Python 2.5)
provides a SimpleHTTPServer and CGI based WSGI servers.
There's also WSGIUtils that provides that.
More information about the Python-list