Apone3d_2022-12.zip Apr 2026
# Example usage file_path = "path/to/Apone3D_2022-12.zip" features = get_file_features(file_path) for feature, value in features.items(): print(f"{feature}: {value}") This script provides a basic set of features. Depending on your needs, you might want to inspect the contents of the zip file further or compute additional checksums and metadata.
def get_file_features(file_path): file_name = os.path.basename(file_path) file_size = os.path.getsize(file_path) creation_date = datetime.fromtimestamp(os.path.getctime(file_path)) modification_date = datetime.fromtimestamp(os.path.getmtime(file_path)) Apone3D_2022-12.zip
# Zip file specifics try: with zipfile.ZipFile(file_path) as zip_ref: num_files = len(zip_ref.namelist()) info = zip_ref.infolist() # You can inspect the info list for more details about each file except zipfile.BadZipFile: num_files = None info = None # Example usage file_path = "path/to/Apone3D_2022-12
# Checksum calculations md5_hash = hashlib.md5(open(file_path, "rb").read()).hexdigest() sha1_hash = hashlib.sha1(open(file_path, "rb").read()).hexdigest() sha256_hash = hashlib.sha256(open(file_path, "rb").read()).hexdigest() "File Size (Bytes)": file_size
import os import zipfile import hashlib from datetime import datetime
features = { "File Name": file_name, "File Size (Bytes)": file_size, "File Type": file_name.split('.')[-1], "Creation Date": creation_date, "Modification Date": modification_date, "MD5 Hash": md5_hash, "SHA-1 Hash": sha1_hash, "SHA-256 Hash": sha256_hash, "Number of Files Inside": num_files, } return features