A wrapper to use the fastest available zlib
Project description
zlib-fast
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98378cad89c938531bb1c0ac20626a15416a66166376e59516cf522b51b1993a
|
|
| MD5 |
aaa7c46cf7bf58f965aad61715d14b84
|
|
| BLAKE2b-256 |
9768e76a96845bbb989e1e97728dbc0d2f13c5ac7b34ba2761d85b2db394356a
|
Provenance
The following attestation bundles were made for zlib_fast-0.2.1.tar.gz:
Publisher:
ci.yml on Bluetooth-Devices/zlib-fast
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zlib_fast-0.2.1.tar.gz -
Subject digest:
98378cad89c938531bb1c0ac20626a15416a66166376e59516cf522b51b1993a - Sigstore transparency entry: 173503688
- Sigstore integration time:
-
Permalink:
Bluetooth-Devices/zlib-fast@aff4bc9bdb566de46d9b4096795f293b796af612 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Bluetooth-Devices
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@aff4bc9bdb566de46d9b4096795f293b796af612 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b86e5066fb42587388a3b508199b9deb36f7d068efa4766dd276d5475cc76100
|
|
| MD5 |
276c4cac696b26aaff464870c2be8390
|
|
| BLAKE2b-256 |
3664afb6431595cab46e412c9115db4d0a3ee9bc9eb30f6336f8b575053bce81
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zlib_fast-0.2.1-py3-none-any.whl -
Subject digest:
b86e5066fb42587388a3b508199b9deb36f7d068efa4766dd276d5475cc76100 - Sigstore transparency entry: 173503689
- Sigstore integration time:
-
Permalink:
Bluetooth-Devices/zlib-fast@aff4bc9bdb566de46d9b4096795f293b796af612 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Bluetooth-Devices
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@aff4bc9bdb566de46d9b4096795f293b796af612 -
Trigger Event:
push
-
Statement type: