Python edit

Unzipping Files

To extract or uncompress a tarball, ZIP, or gzip file, Python’s tarfile, zipfile, and gzip modules are provided respectively. Python’s tarfile module provides the TarFile.extractall(path=".", members=None) function for extracting from a tarball file. Python’s zipfile module provides the ZipFile.extractall([path[, members[, pwd]]]) function for extracting or unzipping ZIP compressed files. Finally, Python’s gzip module provides the GzipFile class for decompressing.

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents
32 Set
46 Enum
105 Stack
119 Mixins
121 ArcPy
127 Arrays
139 Neo4j
141 Curses
146 heapq
155 Audio
156 pyglet
158 ijson
161 Flask
164 pygame
167 Gzip
168 ctypes
177 Unzipping Files
187 shelve
  ↑ ↓ to navigate     ↵ to select     Esc to close