zip¶
-
class
pydecipher.artifact_types.zip.ZipFile(zip_path_or_bytes: Union[str, pathlib.Path, BinaryIO], output_dir: Optional[pathlib.Path] = None, **kwargs) The artifact class representing a zip file.
Zip files of compiled Python files are often found alongside frozen interpreter binaries, or attached to the binaries overlay. They typically contain more than just the compiled Python standard library files needed to run the interpreter and developer’s code, including things like the Microsoft C++ Visual Runtime, application manifests, and miscellaneous resources.
-
archive_path If this artifact comes from a file on disk, this is the path to that file.
- Type
pathlib.Path, optional
-
archive_contents The contents of the archive read into memory.
- Type
bytes
-
output_dir Where any output extracted from this artifact should get dumped.
- Type
os.PathLike
-
kwargs Any keyword arguments needed for the parsing of this artifact, or for parsing nested artifacts.
- Type
Any
-
unpack() → None Recursively search this artifact for frozen Python artifacts.
-
validate_zip_archive() → bool Check if the contents of the class object is a valid zip archive.
- Returns
True if this is a valid zip archive, False if not.
- Return type
bool
-