Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

gzip precompression as post processor

Project description

Hyde Zipper

This module precompresses all plaintext files so that properly configured web servers can serve gzip compressed content without compressing it on every request.

Installation

pip install hyde-zipper

Install Post Processor:

SITE_POST_PROCESSORS = {
    '/': {
        'zipper.site_post_processors.GzipCompress' : {
            'filetypes': ['*html', '*.css', '*.js', '*.xml', '*.txt'],
            'level': 9,
        },
    }
}

Settings

Zipper has 2 settings, filetypes, and level.

filetypes

A list with file extensions to apply precompression too. defaults to

['*html', '*.css', '*.js', '*.xml']

level

An integer 1 through 9 that controls the level of compression. 1 is the fastest, but least amount of compression, and 9 is the slowest, but most amount of compression. defaults to

9

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 hyde-zipper, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size hyde-zipper-0.0.3.tar.gz (1.9 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page