Is wsgi ready for prime time?
Stargaming
stargaming at gmail.com
Thu May 17 14:20:00 EDT 2007
Ron Garret wrote:
> The wsgiref module in Python 2.5 seems to be empty:
>
> [ron at mickey:~/Sites/modpy]$ python
> Python 2.5 (r25:51908, Mar 1 2007, 10:09:05)
> [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>
>>>>import wsgiref
>>>>dir(wsgiref)
>
> ['__builtins__', '__doc__', '__file__', '__name__', '__path__']
>
>
> So... is wsgi considered ready for production use, or is it still on the
> bleeding edge? And if the former, which implementation should one use?
>
> rg
>>> help(wsgiref)
Help on package wsgiref:
NAME
wsgiref - wsgiref -- a WSGI (PEP 333) Reference Library
DESCRIPTION
Current Contents:
* util -- Miscellaneous useful functions and wrappers
* headers -- Manage response headers
* handlers -- base classes for server/gateway implementations
* simple_server -- a simple BaseHTTPServer that supports WSGI
* validate -- validation wrapper that sits between an app and a server
to detect errors in either
To-Do:
* cgi_gateway -- Run WSGI apps under CGI (pending a deployment
standard)
* cgi_wrapper -- Run CGI apps under WSGI
* router -- a simple middleware component that handles URL traversal
PACKAGE CONTENTS
handlers
headers
simple_server
util
validate
Reading the documentation can be useful sometimes. Recommending
http://docs.python.org/lib/module-wsgiref.html, too.
More information about the Python-list
mailing list