Skip to main content

Use the fastest installed zlib compatible library with aiohttp

Project description

aiohttp-fast-zlib

CI Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License


Source Code: https://github.com/bdraco/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 documentation and the zlib-ng documentation.

Installation

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

pip install aiohttp-zlib-fast[isal] pip install aiohttp-zlib-fast[zlib-ng]

Usage

Enable isal or zlib-ng support in aiohttp by calling enable

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):

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_fast_zlib-0.2.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

aiohttp_fast_zlib-0.2.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file aiohttp_fast_zlib-0.2.0.tar.gz.

File metadata

  • Download URL: aiohttp_fast_zlib-0.2.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for aiohttp_fast_zlib-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e2e6c27a7ffc825cdd50d6f80e302ebbc025b43c876c00f01dc2ae759905dce8
MD5 177d42feec9a05387230c1fa4d824a0f
BLAKE2b-256 e9affb60f9f5f7c619478346c456262c491493e1c73f3e1681ce73cdd204ef9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiohttp_fast_zlib-0.2.0.tar.gz:

Publisher: ci.yml on bdraco/aiohttp-fast-zlib

Attestations:

File details

Details for the file aiohttp_fast_zlib-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aiohttp_fast_zlib-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff50de72e95da3d1b7e6dd6fd64a3aedf743f488ad9202a8fde3baccf0fa1161
MD5 6b8932e84aa610b6dc0c2ecc4a09d35d
BLAKE2b-256 135435b33e95e01878b3252e686d050502d04dd4cc3192b4ee13cd300ab2a1aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiohttp_fast_zlib-0.2.0-py3-none-any.whl:

Publisher: ci.yml on bdraco/aiohttp-fast-zlib

Attestations:

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