Skip to main content

Decorator for flup's gzip compression WSGI middleware.

Project description

Usage example:

from wsgigzip import gzip

@gzip()
def index(environ, start_response):
    start_response('200 OK', [('Content-type', 'text/plain')])
    return ['Home Page']

if __name__ == '__main__':
    from wsgiref.simple_server import make_server
    http = make_server('', 8080, index)
    http.serve_forever()

Project details


Download files

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

Source Distributions

wsgigzip-0.1.4.zip (9.3 kB view hashes)

Uploaded Source

wsgigzip-0.1.4.tar.gz (5.6 kB view hashes)

Uploaded Source

wsgigzip-0.1.4.tar.bz2 (5.7 kB view hashes)

Uploaded Source

Built Distribution

wsgigzip-0.1.4-py2-none-any.whl (7.6 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page