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
Release history Release notifications | RSS feed
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)
wsgigzip-0.1.4.tar.gz
(5.6 kB
view hashes)
wsgigzip-0.1.4.tar.bz2
(5.7 kB
view hashes)