Python’s standard library has a rich collection of modules for data compression and archiving. One can select whichever is suitable for his job.
There are following modules related to data compression −
| Sr.No. | Module & Description |
|---|---|
| 1 | zlibCompression compatible with gzip. |
| 2 | gzipSupport for gzip files. |
| 3 | bz2Support for bz2 compression. |
| 4 | lzmaCompression using the LZMA algorithm. |
| 5 | zipfileWork with ZIP archives. |
| 6 | tarfilevRead and write tar archive files. |
Leave a Reply