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.

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 hashes
Filename, size wsgigzip-0.1.4.tar.bz2 (5.7 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size wsgigzip-0.1.4.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size wsgigzip-0.1.4.zip (9.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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