Skip to content

Commit 66cc379

Browse files
committed
Properly reference differences
1 parent 111d813 commit 66cc379

File tree

2 files changed

+15
-28
lines changed

2 files changed

+15
-28
lines changed

README.rst

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,23 +48,23 @@ a variety of functions to provide zlib/gzip-compatible compression.
4848
``python-isal`` provides the bindings by offering three modules:
4949

5050
+ ``isal_zlib``: A drop-in replacement for the zlib module that uses ISA-L to
51-
accelerate its performance.
52-
+ ``igzip``: A drop-in replacement for the gzip module that uses
53-
``isal_zlib`` instead of ``zlib`` to perform its compression
54-
tasks, which improves performance.
51+
accelerate its performance.
52+
+ ``igzip``: A drop-in replacement for the gzip module that uses ``isal_zlib``
53+
instead of ``zlib`` to perform its compression and checksum tasks, which
54+
improves performance.
5555
+ ``igzip_lib``: Provides compression functions which have full access to the
56-
API of ISA-L's compression functions.
56+
API of ISA-L's compression functions.
5757

5858
``isal_zlib`` and ``igzip`` are almost fully compatible with ``zlib`` and
5959
``gzip`` from the Python standard library. There are some minor differences
60-
which are listed below.
60+
see: :ref:`differences`.
6161

6262
.. introduction end
6363
6464
Quickstart
6565
----------
6666

67-
.. usage start
67+
.. quickstart start
6868
6969
The python-isal modules can be imported as follows
7070

@@ -86,7 +86,7 @@ application (just like ``python -m gzip``). Full usage documentation can be
8686
found on `our readthedocs page <https://python-isal.readthedocs.io>`_.
8787

8888

89-
.. usage end
89+
.. quickstart end
9090
9191
Installation
9292
------------
@@ -97,6 +97,8 @@ Installation is supported on Linux, Windows and MacOS. For more advanced
9797
installation options check the `documentation
9898
<https://python-isal.readthedocs.io/en/stable/index.html#installation>`_.
9999

100+
.. _differences:
101+
100102
Differences with zlib and gzip modules
101103
--------------------------------------
102104

docs/index.rst

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,9 @@ Introduction
2323
Quickstart
2424
==========
2525

26-
Python-isal has faster versions of the stdlib's ``zlib`` and ``gzip`` module
27-
these are called ``isal_zlib`` and ``igzip`` respectively.
28-
29-
They can be imported as follows
30-
31-
.. code-block:: python
32-
33-
from isal import isal_zlib
34-
from isal import igzip
35-
36-
``isal_zlib`` and ``igzip`` are meant to be used as drop in replacements so
37-
their api and functions are the same as the stdlib's modules. Except where
38-
ISA-L does not support the same calls as zlib (See differences below).
39-
40-
A full API documentation can be found below.
41-
42-
``python -m isal.igzip`` implements a simple gzip-like command line
43-
application (just like ``python -m gzip``). Full usage documentation can be
44-
found below.
45-
26+
.. include:: includes/README.rst
27+
:start-after: .. quickstart start
28+
:end-before: .. quickstart end
4629

4730
============
4831
Installation
@@ -99,6 +82,8 @@ python-isal is available on conda-forge and can be installed with::
9982
This will automatically install the ISA-L library dependency as well, since
10083
it is available on conda-forge.
10184

85+
.. _differences:
86+
10287
======================================
10388
Differences with zlib and gzip modules
10489
======================================

0 commit comments

Comments
 (0)