Python’s built-in gzip module allows you to read and write compressed files directly in your scripts.
If you have a Linux or macOS machine, gzip is typically installed by default. : gzip filename (replaces original). F!N!Gzip
: Replaces the original file with a version ending in .gz . Python’s built-in gzip module allows you to read
: gzip -l filename.gz to see compression ratios and original size. F!N!Gzip
: gunzip filename.gz or gzip -d filename.gz . Keep original file : gzip -k filename .