Zopfli module for python
Project description
pyzopfli
======
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.
======
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyzopfli-0.1.0.zip
(70.7 kB
view details)
Built Distribution
pyzopfli-0.1.0.win32-py2.7.exe
(249.6 kB
view details)
File details
Details for the file pyzopfli-0.1.0.zip
.
File metadata
- Download URL: pyzopfli-0.1.0.zip
- Upload date:
- Size: 70.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09087c7106b5770ccfc35b509f43f64f22d99b415540b64377dd5661c9140140 |
|
MD5 | aea9fa5605279192b0acb1994d5a2a7f |
|
BLAKE2b-256 | 1bf27f36941822efc1d8aa38bef1c041924ed0a20d9d322fed243cc57538c4af |
File details
Details for the file pyzopfli-0.1.0.win32-py2.7.exe
.
File metadata
- Download URL: pyzopfli-0.1.0.win32-py2.7.exe
- Upload date:
- Size: 249.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba4f75acf9e8fc94c6b0ce6afd63773e4652c509e2a9c8035123958e0e19eb9c |
|
MD5 | 36eef0bfe79b88b4e5a8df2f971da06f |
|
BLAKE2b-256 | 6f6ba4481c86eb13d2172ad881a7e35a25a0b4f78155853effb290dc4130d748 |