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/bluetooth-devices/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.3.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.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiohttp_fast_zlib-0.2.3.tar.gz
Algorithm Hash digest
SHA256 d7e34621f2ac47155d9ad5d78f15ffb066a4ee849cb3d55df0077395ab4b3eff
MD5 150ae4926b43e77a8e547a5e0fd72387
BLAKE2b-256 d773c93543264f745202a6fe78ad8ddb7c13a9d3e3ea47cde26501d683bd46a4

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on Bluetooth-Devices/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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for aiohttp_fast_zlib-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 41a93670f88042faff3ebbd039fd2fc37a0c956193c20eb758be45b1655a7e04
MD5 d53cc49d5590432d87d42f9a340202a3
BLAKE2b-256 c0559aebf9f5dac1a34bb0a4f300d2ec4692f86df44e458f3061a659dec2b98f

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on Bluetooth-Devices/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