|
- Method resolution order:
- pass_archive
- zipfile.ZipFile
- __builtin__.object
Methods defined here:
- add_files(self, file_list)
- Adds files to the archive.
- add_pickle(self, pickle_path)
- adds a pickle and associated configured files to the archive
- extract_archived_pickle(self, pickle_path, pickle_out_dir=None)
- extracts an archived pickle and all associated configured data
- get_list_of_pickle_paths(self, pickle_filter='*')
- returns a list of zipped pickle paths
- get_pickle_info(self, pickle_path)
- returns the pickle info tuple from a zipped pickle
- get_pickle_info_list(self, pickle_filter='*')
- returns the pickle info list from zipped pickles matching pickle_filter
- get_pickled_object(self, pickle_path)
- returns a object from a zipped pickle
- glob(self, glob_string)
- performs a glob like function for files in the zip archive
Methods inherited from zipfile.ZipFile:
- __del__(self)
- Call the "close()" method in case the user forgot.
- __enter__(self)
- __exit__(self, type, value, traceback)
- __init__(self, file, mode='r', compression=0, allowZip64=False)
- Open the ZIP file with mode read "r", write "w" or append "a".
- close(self)
- Close the file, and for mode "w" and "a" write the ending
records.
- extract(self, member, path=None, pwd=None)
- Extract a member from the archive to the current working directory,
using its full name. Its file information is extracted as accurately
as possible. `member' may be a filename or a ZipInfo object. You can
specify a different directory using `path'.
- extractall(self, path=None, members=None, pwd=None)
- Extract all members from the archive to the current working
directory. `path' specifies a different directory to extract to.
`members' is optional and must be a subset of the list returned
by namelist().
- getinfo(self, name)
- Return the instance of ZipInfo given 'name'.
- infolist(self)
- Return a list of class ZipInfo instances for files in the
archive.
- namelist(self)
- Return a list of file names in the archive.
- open(self, name, mode='r', pwd=None)
- Return file-like object for 'name'.
- printdir(self)
- Print a table of contents for the zip file.
- read(self, name, pwd=None)
- Return file bytes (as a string) for name.
- setpassword(self, pwd)
- Set default password for encrypted files.
- testzip(self)
- Read all the files and check the CRC.
- write(self, filename, arcname=None, compress_type=None)
- Put the bytes from filename into the archive under the name
arcname.
- writestr(self, zinfo_or_arcname, bytes, compress_type=None)
- Write a file into the archive. The contents is the string
'bytes'. 'zinfo_or_arcname' is either a ZipInfo instance or
the name of the file in the archive.
Data descriptors inherited from zipfile.ZipFile:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- comment
- The comment text associated with the ZIP file.
Data and other attributes inherited from zipfile.ZipFile:
- fp = None
|