zlib

Christian Harms's picture

Use compressed data directly - from ZIP files or gzip http response

Did you use compressing while using resources from your scripts and projects? Many data files are compressed to save disc space and compressed requests over the network saves bandwith.

This article gives some hints to use the “battery included” power of python for the handling of compressed files or use HTTP with gzip compression:

  1. reading log files as GZIP or uncompressed
  2. using files directly from ZIP- or RAR compression archive
  3. use gzip compressing while fetching web sites



Read more

Syndicate content