ZipArchive.open#

ZipArchive.open(name: str)[source]#

Open a file from the archive

Parameters:

name (str) – file name

Returns:

read-only handle to the named file

Return type:

file object

Opens the specified file within the archive. Typically the ZipArchive instance is used as an iterator over the image files within, but this method can be used to access non-image data such as camera calibration data etc. that might also be contained within the archive and is excluded by the filter.