Dumb-as-rocks WSGI serving using standard library

Damjan 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[1] provides one, wsgiref[2] (probably will be included in Python 2.5)
provides a SimpleHTTPServer and CGI based WSGI servers.
There's also WSGIUtils[3] that provides that.

[1] http://pythonpaste.org/
[2] http://svn.eby-sarna.com/wsgiref/
[3] http://www.owlfish.com/software/wsgiutils/


More information about the Python-list mailing list