Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

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.

Files for wsgigzip, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size wsgigzip-0.1.4-py2-none-any.whl (7.6 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size wsgigzip-0.1.4.tar.bz2 (5.7 kB) File type Source Python version None Upload date Hashes View
Filename, size wsgigzip-0.1.4.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View
Filename, size wsgigzip-0.1.4.zip (9.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page