decompression Module¶
Streaming decompressors.
-
class
wpull.decompression.DeflateDecompressor[source]¶ Bases:
wpull.decompression.SimpleGzipDecompressorzlib decompressor with raw deflate detection.
This class doesn’t do any special. It only tries regular zlib and then tries raw deflate on the first decompress.
-
class
wpull.decompression.GzipDecompressor[source]¶ Bases:
wpull.decompression.SimpleGzipDecompressorgzip decompressor with gzip header detection.
This class checks if the stream starts with the 2 byte gzip magic number. If it is not present, it returns the bytes unchanged.
-
class
wpull.decompression.SimpleGzipDecompressor[source]¶ Bases:
objectStreaming gzip decompressor.
The interface is like that of zlib.decompressobj (without some of the optional arguments, but it understands gzip headers and checksums.