This document is for Kombu's development version, which can be significantly different from previous releases. Get the stable docs here: 5.0.
Message Compression - kombu.compression
¶
Compression utilities.
Encoding/decoding¶
Registry¶
- kombu.compression.register(encoder, decoder, content_type, aliases=None)[source]¶
Register new compression method.
- Parameters
encoder (Callable) – Function used to compress text.
decoder (Callable) – Function used to decompress previously compressed text.
content_type (str) – The mime type this compression method identifies as.
aliases (Sequence[str]) – A list of names to associate with this compression method.