isal

1.8.0 · active · verified Sat Apr 11

isal (python-isal) provides faster zlib and gzip compatible compression and decompression by offering Python bindings for the Intel® Intelligent Storage Acceleration Library (ISA-L). It includes `isal_zlib` and `igzip` as high-performance, largely drop-in replacements for the standard library's `zlib` and `gzip` modules, respectively, along with `igzip_threaded` for multi-threaded streaming and `igzip_lib` for direct ISA-L API access. The current version is 1.8.0, and it maintains an active development and release cadence.

Warnings

Install

Imports

Quickstart

This example demonstrates basic compression and decompression using `isal_zlib`, highlighting its direct compatibility with the standard `zlib` module's API.

from isal import isal_zlib

original_data = b"Python-isal offers faster compression and decompression." * 10

# Compress data
compressed_data = isal_zlib.compress(original_data)

# Decompress data
decompressed_data = isal_zlib.decompress(compressed_data)

assert original_data == decompressed_data

print(f"Original size: {len(original_data)} bytes")
print(f"Compressed size: {len(compressed_data)} bytes")
print("Data compressed and decompressed successfully using isal_zlib.")

view raw JSON →