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.1.tar.gz (8.7 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.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiohttp_fast_zlib-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f0f392ebd663e781a9e5c10646f24c26c0b9fac6293ddf8e28f37dad66ce5117
MD5 065ce541786414945ec1d843ad39c520
BLAKE2b-256 4cc8ffd99f2740da7996f7d553ac47d17870fa5884230d430d45b45631081c75

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiohttp_fast_zlib-0.2.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aiohttp_fast_zlib-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18861129a58b4a045c082aa5e878428f87b41bc8aaecf7af0c57ba4c7c22a02d
MD5 1f8cb65c3bab9cc8d381ef92e6f9ba52
BLAKE2b-256 d956eb63132c4b7d3781d66c96b45559c832477b3f39152e7f2c79d27aaa68f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiohttp_fast_zlib-0.2.1-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