Skip to main content

A wrapper to use the fastest available zlib

Project description

zlib-fast

CI Status Documentation Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License


Documentation: https://zlib-fast.readthedocs.io

Source Code: https://github.com/bluetooth-devices/zlib-fast


A wrapper to use the fastest available zlib

zlib is be a bottleneck for creating backups with tarfile. zlib-fast replaces usage of zlib with isal which is a drop-in faster replacement.

Unlike the base isal implementation, this module maps zlib compression levels for compressobj to their nearest isal equivalent which allows it to be used as a drop in replacement with tarfile.

Installation

Install this via pip (or your favourite package manager):

pip install zlib-fast

Usage

Enable zlib-fast support by calling zlib_fast.enable().

import zlib_fast

zlib_fast.enable()
zlib_fast.disable()

The most common use case is for use with tarfile which does a late import. enable will only be effective for future imports of zlib, and will not redirect existing imports. If you need to use this module for other use cases, be sure to call zlib_fast.enable() before any code that loads zlib.

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

zlib_fast-0.2.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

zlib_fast-0.2.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zlib_fast-0.2.1.tar.gz
Algorithm Hash digest
SHA256 98378cad89c938531bb1c0ac20626a15416a66166376e59516cf522b51b1993a
MD5 aaa7c46cf7bf58f965aad61715d14b84
BLAKE2b-256 9768e76a96845bbb989e1e97728dbc0d2f13c5ac7b34ba2761d85b2db394356a

See more details on using hashes here.

Provenance

The following attestation bundles were made for zlib_fast-0.2.1.tar.gz:

Publisher: ci.yml on Bluetooth-Devices/zlib-fast

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

File details

Details for the file zlib_fast-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: zlib_fast-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for zlib_fast-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b86e5066fb42587388a3b508199b9deb36f7d068efa4766dd276d5475cc76100
MD5 276c4cac696b26aaff464870c2be8390
BLAKE2b-256 3664afb6431595cab46e412c9115db4d0a3ee9bc9eb30f6336f8b575053bce81

See more details on using hashes here.

Provenance

The following attestation bundles were made for zlib_fast-0.2.1-py3-none-any.whl:

Publisher: ci.yml on Bluetooth-Devices/zlib-fast

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