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.1.1.tar.gz (8.5 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.1.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiohttp_fast_zlib-0.1.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for aiohttp_fast_zlib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 085dd826523137487fb41fd262dcc9fdc5f53ea988fa449f9ef703d939f01e9f
MD5 fd2d3d3212e52b44eb7ba96ff5def808
BLAKE2b-256 2de8225bd4c4db8a435de589e911ab27b2eeed50fa266e452adcf3d07421f81d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aiohttp_fast_zlib-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b576d03d8b31d3920463d53bdc293b8c631844e2d28fb2ad7cbc559092d4df86
MD5 2b12b06ca6caa3aac76260de6adce50d
BLAKE2b-256 c8ab33ea8dec4bc3a7371af87f899614bc698cbfde25a4133ab21e064555628d

See more details on using hashes here.

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