Metadata-Version: 1.1
Name: wsgim-record
Version: 0.1.1
Summary: WSGI middleware for recording requests/responses.
Home-page: https://github.com/bninja/wsgim-record
Author: stan
Author-email: stan@hooper.com
License: BSD
Description: ============
        wsgim-record
        ============
        
        .. image:: https://travis-ci.org/bninja/wsgim-record.png
           :target: https://travis-ci.org/bninja/wsgim-record
        
        .. image:: https://coveralls.io/repos/bninja/wsgim-record/badge.png
           :target: https://coveralls.io/r/bninja/wsgim-record
        
        WSGI middleware for conditionally recording request/response information.
        
        Install it:
        
        .. code:: bash
        
           $ pip install wsgim-record
           ...
        
        and use it:
        
        .. code:: python
        
           import wsgim_record
        
           class RecordMiddleware(wsgim_record.RecordMiddleware)
           
               # tell what to record
        
               def record_input(self, environ)
                   return True
        
               def record_errors(self, environ)
                   return False
        
               def record_output(self, environ, status, headers, exc_info=None)
                   return True
        
                # what was recorded
                
                def recorded(self, environ, input, errors, status, headers, output):
                    ...
        
           wrapped = RecordMiddleware(app)
        
Platform: any
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
