@@ -42,7 +42,7 @@ by providing Python bindings for the zlib-ng library.
42
42
This package provides Python bindings for the `zlib-ng
43
43
<https://github.com/zlib-ng/zlib-ng> `_ library.
44
44
45
- ``python-zlib-ng `` provides the bindings by offering two modules:
45
+ ``python-zlib-ng `` provides the bindings by offering three modules:
46
46
47
47
+ ``zlib_ng ``: A drop-in replacement for the zlib module that uses zlib-ng to
48
48
accelerate its performance.
@@ -51,6 +51,11 @@ This package provides Python bindings for the `zlib-ng
51
51
instead of ``zlib `` to perform its compression and checksum tasks, which
52
52
improves performance.
53
53
54
+ + ``gzip_ng_threaded `` offers an ``open `` function which returns buffered read
55
+ or write streams that can be used to read and write large files while
56
+ escaping the GIL using one or multiple threads. This functionality only
57
+ works for streaming, seeking is not supported.
58
+
54
59
``zlib_ng `` and ``gzip_ng `` are almost fully compatible with ``zlib `` and
55
60
``gzip `` from the Python standard library. There are some minor differences
56
61
see: differences-with-zlib-and-gzip-modules _.
@@ -68,6 +73,7 @@ The python-zlib-ng modules can be imported as follows
68
73
69
74
from zlib_ng import zlib_ng
70
75
from zlib_ng import gzip_ng
76
+ from zlib_ng import gzip_ng_threaded
71
77
72
78
``zlib_ng `` and ``gzip_ng `` are meant to be used as drop in replacements so
73
79
their api and functions are the same as the stdlib's modules.
0 commit comments