Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Zopfli module for python

Project Description

Python bindings to zopfli

Main public module is pyzopfli.zlib.
It provides emulation of standard zlib module and can be used
in any application as drop-in replace.
Decompression functions are imported in pyzopfli.zlib from zlib.

import pyzopfli.zlib as zlib

pyzopfli may be used with gzip or zipfile modules of standard library
by replacing their zlib module attribute in runtime.

import pyzopfli.zlib as zlib
import zipfile
zipfile.zlib = zlib

You also can slightly cheat and control power of compression with
'levit' attribute of pyzopli.zlib module

import pyzopfli.zlib as zlib
zlib.levit[zlib.Z_DEFAULT_COMPRESSION] = iterations

pyzopfli.zlib passes standard's library unittest with
same failures as native zlib (few failures are errors of decompressor)
Same for gzip and zipfile modules with replaced zlib.
Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyzopfli-0.1.0.win32-py2.7.exe (249.6 kB) Copy SHA256 Checksum SHA256 2.7 Windows Installer Aug 17, 2013 (70.7 kB) Copy SHA256 Checksum SHA256 Source Aug 17, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting