compress#

streaming.base.compression.compress(algo, data)[source]#

Compress arbitrary data.

Parameters
  • algo (str, optional) – Compression.

  • data (bytes) – Uncompressed data.

Returns

bytes – Compressed data.