
This is meant forĪdding a ZIP archive to another file (such as python.exe). ZIP file, then a new ZIP archive is appended to the file. If mode is 'a' and file refers to an existing ZIPįile, then additional files are added to it. If mode is 'x' and file refers to an existing file,

The mode parameter should be 'r' to read an existingįile, 'w' to truncate and write a new file, 'a' to append to anĮxisting file, or 'x' to exclusively create and write a new file. Open a ZIP file, where file can be a path to a file (a string), a ZipFile ( file, mode = 'r', compression = ZIP_STORED, allowZip64 = True, compresslevel = None, *, strict_timestamps = True, metadata_encoding = None ) ¶ Information about the Info-ZIP project’s ZIP archive programs and development

Documentation on the ZIP file format by Phil Katz, the creator of the format and
