Skip to content

Commit 69778ac

Browse files
authored
Make a few updates to the readme.
1 parent 99a9d39 commit 69778ac

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.rst

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,29 @@ a variety of functions to provide zlib/gzip-compatible compression.
4343
``igzip`` module which are usable as drop-in replacements for the ``zlib``
4444
and ``gzip`` modules from the stdlib (with some minor exceptions, see below).
4545

46+
Usage
47+
-----
48+
49+
Python-isal has faster versions of the stdlib's ``zlib`` and ``gzip`` module
50+
these are called ``isal_zlib`` and ``igzip`` respectively.
51+
52+
They can be imported as follows
53+
54+
.. code-block:: python
55+
56+
from isal import isal_zlib
57+
from isal import igzip
58+
59+
``isal_zlib`` and ``igzip`` were meant to be used as drop in replacements so
60+
their api and functions are the same as the stdlib's modules. Except where
61+
isa-l does not support the same calls as zlib (See differences below).
62+
63+
A full API documentation can be found on `our readthedocs page
64+
<https://python-isal.readthedocs.io>`_.
65+
66+
``python -m isal.igzip`` implements a simple gzip-like command line
67+
application (just like ``python -m gzip``).
68+
4669
Installation
4770
------------
4871
Installation with pip
@@ -99,30 +122,6 @@ python-isal is available on conda-forge and can be installed with
99122
This will automatically install the isa-l library dependency as well, since
100123
it is available on conda-forge.
101124

102-
103-
Usage
104-
-----
105-
106-
Python-isal has faster versions of the stdlib's ``zlib`` and ``gzip`` module
107-
these are called ``isal_zlib`` and ``igzip`` respectively.
108-
109-
They can be imported as follows
110-
111-
.. code-block:: python
112-
113-
from isal import isal_zlib
114-
from isal import igzip
115-
116-
``isal_zlib`` and ``igzip`` were meant to be used as drop in replacements so
117-
their api and functions are the same as the stdlib's modules. Except where
118-
isa-l does not support the same calls as zlib (See differences below).
119-
120-
A full API documentation can be found on `our readthedocs page
121-
<https://python-isal.readthedocs.io>`_.
122-
123-
``python -m isal.igzip`` implements a simple gzip-like command line
124-
application (just like ``python -m gzip``).
125-
126125
Differences with zlib and gzip modules
127126
--------------------------------------
128127

@@ -140,13 +139,14 @@ Differences with zlib and gzip modules
140139
``isal_zlib`` supports memory levels smallest, small, medium, large and
141140
largest. These have been mapped to levels 1, 2-3, 4-6, 7-8 and 9. So
142141
``isal_zlib`` can be used with zlib compatible memory levels.
143-
+ ``isal_zlib`` only supports ``FLUSH``, ``SYNC_FLUSH`` and ``FULL_FLUSH``
144-
``FINISH`` is aliased to ``FULL_FLUSH`` (and works correctly as such).
145142
+ ``isal_zlib`` has a ``compressobj`` and ``decompressobj`` implementation.
146143
However, the unused_data and unconsumed_tail for the Decompress object, only
147144
work properly when using gzip compatible compression. (25 <= wbits <= 31).
148145
+ The flush implementation for the Compress object behavious differently from
149-
the zlib equivalent.
146+
the zlib equivalent. The flush implementation is sufficient for
147+
the ``igzip`` module to work 100% in compliance with the ``gzip`` tests from
148+
CPython. It does not however work for the ``zlib`` compliance tests. This
149+
is an area that still needs work.
150150

151151
Contributing
152152
------------

0 commit comments

Comments
 (0)