Metadata-Version: 1.0
Name: wsgistraw
Version: 0.1.1
Summary: Decorators for WSGI without start_response and write
Home-page: http://abstracthack.wordpress.com/wsgistraw
Author: Andrey Nordin
Author-email: UNKNOWN
License: GNU LGPL
Description: **wsgistraw** is a tiny Python library that simplifies coding WSGI applications
        and middleware by removing ``start_response`` and ``write`` from signatures of
        functions. This leads to a signature like:
        
        ::
        
        def app(environ):
        return "200 OK", [("Content-Type", "text/plain")], ["Hello World!"]
        
        That is, return a three-tuple of (status, headers, response).
        
        start_response and write are very annoying in WSGI middleware. wsgistraw makes
        your middleware code cleaner. This is an example of a "lowercase" middleware
        factory:
        
        ::
        
        @wsgistraw.mid_factory
        def lowercase(app):
        def mid(environ):
        status, headers, response = app(environ)
        return status, headers, (s.lower() for s in response)
        return mid
        
        What's New
        ----------
        
        Added ``app_proxy``, fixed a couple of inconsistencies with PEP 333.
        
        * (+) Added public ``app_proxy`` class (former ``_app_proxy``, thanks to Ian Bicking)
        * (-) If an app uses ``write()`` then ``app_proxy`` invokes ``response.close()`` after iterating over it
        * (-) If an app hasn't invoked ``start_resposnse()`` before returning then ``app_proxy`` forces this invocation by calling ``response.next()``
        
        See Also
        --------
        
        * `wsgistraw Project`__
        * `WSGI 2.0 at WSGI Wiki`__
        * `PEP 333`__
        
        __ http://abstracthack.wordpress.com/wsgistraw
        __ http://www.wsgi.org/wsgi/WSGI_2.0
        __ http://www.python.org/dev/peps/pep-0333/
Keywords: wsgi decorator start_response write
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
