Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Manipulating ZIP Files With Python (Summary)

Python’s zipfile is a handy tool when you need to read, write, compress, decompress, and extract files from ZIP archives. The ZIP file format has become an industry standard, allowing you to package and optionally compress your digital data.

The benefits of using ZIP files include archiving related files together, saving disk space, making it easy to transfer data over computer networks, bundling Python code for distribution purposes, and more.

In this video course, you learned how to:

  • Use Python’s zipfile to read, write, and extract existing ZIP files
  • Read metadata about the content of your ZIP files with zipfile
  • Use zipfile to manipulate member files in existing ZIP files
  • Create your own ZIP files to archive and compress your digital data

You also learned how to use zipfile from your command line to list, create, and extract your ZIP files. With this knowledge, you’re ready to efficiently archive, compress, and manipulate your digital data using the ZIP file format.

If you’d like to learn more about the concepts in this course, then check out:

Download

Sample Code (ZIP)

23.4 KB
Download

Course Slides (PDF)

12.6 MB

Become a Member to join the conversation.