Skip to main content
Help us improve Python packaging – donate today!

WSGI middleware for recording requests/responses.

Project Description

https://travis-ci.org/bninja/wsgim-record.png https://coveralls.io/repos/bninja/wsgim-record/badge.png

WSGI middleware for conditionally recording request/response information.

Install it:

$ pip install wsgim-record
...

and use it:

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)

Release history Release notifications

This version
History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
wsgim-record-0.1.1.tar.gz (3.7 kB) Copy SHA256 hash SHA256 Source None Jul 28, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page