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.3.0.tar.gz (8.8 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.3.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiohttp_fast_zlib-0.3.0.tar.gz
  • Upload date:
  • Size: 8.8 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.3.0.tar.gz
Algorithm Hash digest
SHA256 963a09de571b67fa0ef9cb44c5a32ede5cb1a51bc79fc21181b1cddd56b58b28
MD5 3425a2b02040c777583f1124c0affe78
BLAKE2b-256 0aa6982f3a013b42e914a2420631afcaecb729c49525cc6cc58e15d27ee4cb4b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aiohttp_fast_zlib-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4cb20760a3e1137c93cb42c13871cbc9cd1fdc069352f2712cd650d6c0e537e
MD5 116a9b06ea3f623a5c8caee0066ba8e8
BLAKE2b-256 b711ea9ecbcd6cf68c5de690fd39b66341405ab091aa0c3598277e687aa65901

See more details on using hashes here.

Provenance

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