Python - Data Compression


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 −

  • zlib − Compression compatible with gzip.

  • gzip − Support for gzip files.

  • bz2 − Support for bz2 compression.

  • lzma − Compression using the LZMA algorithm.

  • zipfile − Work with ZIP archives.

  • tarfilev − Read and write tar archive files.

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements