Metadata-Version: 2.3 Name: aiohttp-fast-zlib Version: 0.3.0 Summary: Use the fastest installed zlib compatible library with aiohttp License: Apache-2.0 Author: J. Nick Koston Author-email: nick@koston.org Requires-Python: >=3.9 Classifier: Development Status :: 2 - Pre-Alpha Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Apache Software License Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: 3.13 Classifier: Topic :: Software Development :: Libraries Provides-Extra: isal Provides-Extra: zlib-ng Requires-Dist: aiohttp (>=3.9.0) Requires-Dist: isal (>=1.6.1) ; extra == "isal" Requires-Dist: zlib_ng (>=0.4.3) ; extra == "zlib-ng" Project-URL: Bug Tracker, https://github.com/bluetooth-devices/aiohttp-fast-zlib/issues Project-URL: Changelog, https://github.com/bluetooth-devices/aiohttp-fast-zlib/blob/main/CHANGELOG.md Project-URL: Repository, https://github.com/bluetooth-devices/aiohttp-fast-zlib Description-Content-Type: text/markdown # aiohttp-fast-zlib
--- **Source Code**: https://github.com/bluetooth-devices/aiohttp-fast-zlib --- Use the fastest installed zlib compatible library with aiohttp zlib is be a bottleneck for aiohttp, especially for websocket connections. `aiohttp-fast-zlib` replaces usage of `zlib` in `aiohttp` with `isal` or `zlib-ng` which is a drop-in faster replacement in most cases. Be sure to read the [isal](https://github.com/pycompression/python-isal) documentation and the [zlib-ng](https://github.com/pycompression/python-zlib-ng) documentation. ## Installation Install this via pip (or your favourite package manager): `pip install aiohttp-fast-zlib[isal]` `pip install aiohttp-fast-zlib[zlib-ng]` ## Usage Enable [isal](https://github.com/pycompression/python-isal) or [zlib-ng](https://github.com/pycompression/python-zlib-ng) support in aiohttp by calling `enable` ```python import aiohttp_zlib_fast # isal is preferred over zlib_ng if it is available aiohttp_zlib_fast.enable() aiohttp_zlib_fast.enable() ``` ## Contributors ✨ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! ## Credits This package was created with [Copier](https://copier.readthedocs.io/) and the [browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template) project template.