Skip to main content

Enable zlib_ng on aiohttp

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.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

aiohttp_zlib_ng-0.3.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiohttp_zlib_ng-0.3.2.tar.gz
Algorithm Hash digest
SHA256 e6a7ad369b1275924bdb61d35b24cac738ae403679f146f142f99a8dcfb20945
MD5 6e2a58c0fdc6036442867f9143807aed
BLAKE2b-256 d4cedb1c0689a6f822f90ef32722a6ca5874436ed8d19b59db61ec6a00ac3e81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aiohttp_zlib_ng-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9dcc3540e51b629ebb670e66b9e572bed063b5957f27469448dcfa865529af9c
MD5 cef1db434a98c4d8ebc41655c487dbad
BLAKE2b-256 241199c7aee1180da7c1be1566bfec80a9d7764b78c0f46d086cc784ad4eecc9

See more details on using hashes here.

Supported by

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