An static resource compression plugin for Pelican, the static site generator.
Zopfli Gzip cache
Certain web servers (e.g., Nginx) can use a static cache of gzip-compressed files to prevent the server from compressing files during an HTTP call. Since compression occurs at another time, these compressed files can be compressed at a higher compression level for increased optimization.
Since zopfli is slow, this plugin uses joblib to compress files in parallel.
pelican-zopfli plugin compresses all common text type files into a
.gz file within the same directory as the original file.
The easiest option is to install via pip from PyPI:
pip install pelican-zopfli
It is also possible to simply clone the git repository and put it in a directory
PLUGIN_PATHS in your
git clone https://github.com/VorpalBlade/pelican_zopfli.git
In both cases you will then have to enable the plugin by putting
PLUGINS in your pelican configuration. It is
a good idea to only do this in your
publishconf.py since this plugin is
PELICAN_ZOPFLI_OVERWRITEIf True, the original files will be replaced by the gzip-compressed files. This is useful for static hosting services (e.g S3). Defaults to False.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pelican_zopfli-1.0.1-py3-none-any.whl (15.9 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size pelican_zopfli-1.0.1.tar.gz (3.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for pelican_zopfli-1.0.1-py3-none-any.whl