| 1 |
Getting started with Inflate64 |
| 2 |
============================== |
| 3 |
|
| 4 |
The ``inflate64`` is a python package to provide ``Deflater`` and ``Inflater`` class to compress and |
| 5 |
decompress with Enhanced Deflate compression algorithm. |
| 6 |
|
| 7 |
The project is in ``Production/Stable`` status. |
| 8 |
|
| 9 |
How to use |
| 10 |
---------- |
| 11 |
|
| 12 |
You can install it with ``pip`` command as usual. |
| 13 |
|
| 14 |
.. code-block:: |
| 15 |
|
| 16 |
pip install inflate64 |
| 17 |
|
| 18 |
|
| 19 |
You can extract compressed data by instantiating ``Inflater`` class and call ``inflate`` method. |
| 20 |
|
| 21 |
.. code-block:: python |
| 22 |
|
| 23 |
import inflate64 |
| 24 |
decompressor = inflate64.Inflater() |
| 25 |
extracted = decompressor.inflate(data) |
| 26 |
|
| 27 |
|
| 28 |
You can also compress data by instantiating ``Deflater`` class and call ``deflate`` method. |
| 29 |
|
| 30 |
.. code-block:: python |
| 31 |
|
| 32 |
import inflate64 |
| 33 |
compressor = inflate64.Deflater() |
| 34 |
compressed = compressor.deflate(data) |
| 35 |
compressed += compressor.flush() |
| 36 |
|