Skip to main content

Enable zlib_ng on aiohttp

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

aiohttp-zlib-ng

CI Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License


Source Code: https://github.com/bdraco/aiohttp-zlib-ng


Enable zlib_ng on aiohttp

zlib is be a bottleneck for aiohttp, especially for websocket connections. aiohttp-zlib-ng replaces usage of zlib in aiohttp with zlib-ng which is a drop-in faster replacement.

If isal is available, this library will try to use isal, and will fallback to the slower zlib_ng if it is not available.

Installation

Install this via pip (or your favorite package manager):

pip install aiohttp-zlib-ng

To install the optional isal speed up:

pip install aiohttp-zlib-ng[isal]

Usage

Enable zlib-ng support in aiohttp by calling enable_zlib_ng

import aiohttp_zlib_ng

aiohttp_zlib_ng.enable_zlib_ng()
aiohttp_zlib_ng.disable_zlib_ng()

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Copier and the browniebroke/pypackage-template project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiohttp_zlib_ng-0.3.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiohttp_zlib_ng-0.3.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file aiohttp_zlib_ng-0.3.0.tar.gz.

File metadata

  • Download URL: aiohttp_zlib_ng-0.3.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for aiohttp_zlib_ng-0.3.0.tar.gz
Algorithm Hash digest
SHA256 82248a5dff95e0cf6105d874173f605bb63d0a62ee5121f385a93a760009c375
MD5 59fb0698bfeae027134c4db2bd388886
BLAKE2b-256 82afca842279b9569cde14e27abcb7b91dd8d01dfadd82578783bc9d7deb7fb1

See more details on using hashes here.

File details

Details for the file aiohttp_zlib_ng-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aiohttp_zlib_ng-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92d20418d065c858f80e5aeb6f89c4a214cc875b4c14ba7af8546c518c8f0b3c
MD5 d608a6e367c98054af084ceeaa24efa2
BLAKE2b-256 00fc88d138e59abeb101574e22a733c93ca74a5d36ca77a1296cda7517844b35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page