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-fast-zlib[isal] pip install aiohttp-fast-zlib[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.2.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiohttp_fast_zlib-0.2.2.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for aiohttp_fast_zlib-0.2.2.tar.gz
Algorithm Hash digest
SHA256 60d1331f1b732bc1c4bf79dd4d8980a15ce148f550038105d7de396a3f76cc9e
MD5 65f339b10d97411ed66f29026cfdd219
BLAKE2b-256 e4932f2143ce7b25e05bb8db2e4c73cc00e696e493b1d0309db2cb64a38c036c

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for aiohttp_fast_zlib-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e30f392c7735dc87bd5145d4256ffa3a6dc90797de1aa6e7def1c4569bf2f988
MD5 5c14dcd818ee31d957b9af82ee5447e9
BLAKE2b-256 8a68b916b03fe7390d0efac4282ac1cd4004f7f439339164a8f0b1420ae4e63b

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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