| 1 |
Metadata-Version: 2.4 |
| 2 |
Name: inflate64 |
| 3 |
Version: 1.0.4 |
| 4 |
Summary: deflate64 compression/decompression library |
| 5 |
Author-email: Hiroshi Miura <[email protected]> |
| 6 |
License: LGPL-2.1-or-later |
| 7 |
Project-URL: Source, https://github.com/miurahr/inflate64 |
| 8 |
Project-URL: Homepage, https://inflate64.readthedocs.io/ |
| 9 |
Project-URL: Documentation, https://inflate64.readthedocs.io/en/stable/ |
| 10 |
Project-URL: Bug Tracker, https://github.com/miurahr/inflate64/issues |
| 11 |
Project-URL: Changelog, https://inflate64.readthedocs.io/en/latest/changelog.html |
| 12 |
Keywords: deflate64,compression |
| 13 |
Classifier: Development Status :: 5 - Production/Stable |
| 14 |
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+) |
| 15 |
Classifier: Operating System :: MacOS :: MacOS X |
| 16 |
Classifier: Operating System :: Microsoft :: Windows |
| 17 |
Classifier: Operating System :: POSIX |
| 18 |
Classifier: Operating System :: POSIX :: Linux |
| 19 |
Classifier: Programming Language :: Python |
| 20 |
Classifier: Programming Language :: Python :: 3 |
| 21 |
Classifier: Programming Language :: Python :: 3.9 |
| 22 |
Classifier: Programming Language :: Python :: 3.10 |
| 23 |
Classifier: Programming Language :: Python :: 3.11 |
| 24 |
Classifier: Programming Language :: Python :: 3.12 |
| 25 |
Classifier: Programming Language :: Python :: 3.13 |
| 26 |
Classifier: Programming Language :: Python :: 3.14 |
| 27 |
Classifier: Programming Language :: Python :: 3 :: Only |
| 28 |
Classifier: Programming Language :: Python :: Implementation :: CPython |
| 29 |
Classifier: Topic :: Software Development :: Libraries :: Python Modules |
| 30 |
Requires-Python: >=3.9 |
| 31 |
Description-Content-Type: text/x-rst |
| 32 |
License-File: COPYING |
| 33 |
Provides-Extra: test |
| 34 |
Requires-Dist: pytest; extra == "test" |
| 35 |
Provides-Extra: docs |
| 36 |
Requires-Dist: sphinx>=5.0; extra == "docs" |
| 37 |
Requires-Dist: sphinx_rtd_theme; extra == "docs" |
| 38 |
Requires-Dist: docutils; extra == "docs" |
| 39 |
Provides-Extra: check |
| 40 |
Requires-Dist: mypy>=1.10.0; extra == "check" |
| 41 |
Requires-Dist: mypy_extensions>=0.4.1; extra == "check" |
| 42 |
Requires-Dist: check-manifest; extra == "check" |
| 43 |
Requires-Dist: flake8; extra == "check" |
| 44 |
Requires-Dist: flake8-black; extra == "check" |
| 45 |
Requires-Dist: flake8-deprecated; extra == "check" |
| 46 |
Requires-Dist: flake8-isort; extra == "check" |
| 47 |
Requires-Dist: pygments; extra == "check" |
| 48 |
Requires-Dist: readme-renderer; extra == "check" |
| 49 |
Requires-Dist: twine; extra == "check" |
| 50 |
Dynamic: license-file |
| 51 |
|
| 52 |
inflate64 |
| 53 |
========= |
| 54 |
|
| 55 |
.. image:: https://badge.fury.io/py/inflate64.svg |
| 56 |
:target: https://badge.fury.io/py/inflate64 |
| 57 |
|
| 58 |
.. image:: https://github.com/miurahr/inflate64/actions/workflows/run-tox-tests.yml/badge.svg?branch=main |
| 59 |
:target: https://github.com/miurahr/inflate64/actions/workflows/run-tox-tests.yml |
| 60 |
|
| 61 |
.. image:: https://ci.codeberg.org/api/badges/12505/status.svg |
| 62 |
:target: https://ci.codeberg.org/repos/12505 |
| 63 |
|
| 64 |
|
| 65 |
The ``inflate64`` is a python package to provide ``Deflater`` and ``Inflater`` class to compress and |
| 66 |
decompress with Enhanced Deflate compression algorithm. |
| 67 |
|
| 68 |
The project is in ``Production/Stable`` status. |
| 69 |
|
| 70 |
How to use |
| 71 |
---------- |
| 72 |
|
| 73 |
You can install it with ``pip`` command as usual. |
| 74 |
|
| 75 |
.. code-block:: |
| 76 |
|
| 77 |
pip install inflate64 |
| 78 |
|
| 79 |
|
| 80 |
You can extract compressed data by instantiating ``Inflater`` class and call ``inflate`` method. |
| 81 |
|
| 82 |
.. code-block:: python |
| 83 |
|
| 84 |
import inflate64 |
| 85 |
decompressor = inflate64.Inflater() |
| 86 |
extracted = decompressor.inflate(data) |
| 87 |
|
| 88 |
|
| 89 |
You can also compress data by instantiating ``Deflater`` class and call ``deflate`` method. |
| 90 |
|
| 91 |
.. code-block:: python |
| 92 |
|
| 93 |
import inflate64 |
| 94 |
compressor = inflate64.Deflater() |
| 95 |
compressed = compressor.deflate(data) |
| 96 |
compressed += compressor.flush() |
| 97 |
|
| 98 |
|
| 99 |
License |
| 100 |
------- |
| 101 |
|
| 102 |
This library is free software; you can redistribute it and/or |
| 103 |
modify it under the terms of the GNU Lesser General Public |
| 104 |
License as published by the Free Software Foundation; either |
| 105 |
version 2.1 of the License, or (at your option) any later version. |
| 106 |
|
| 107 |
This library is distributed in the hope that it will be useful, |
| 108 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 109 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 110 |
Lesser General Public License for more details. |
| 111 |
|
| 112 |
You should have received a copy of the GNU Lesser General Public |
| 113 |
License along with this library; if not, write to the Free Software |
| 114 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 115 |
|
| 116 |
.. note:: |
| 117 |
Please note that Enhanced Deflate algorithm is also known as `DEFLATE64` :sup:`TM` |
| 118 |
that is a registered trademark of `PKWARE, Inc.` |