Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python get zip file size

import zipfile

zp = zipfile.ZipFile("example.zip")

size = sum([zinfo.file_size for zinfo in zp.filelist])
zip_kb = float(size) / 1000  # kB
Comment

PREVIOUS NEXT
Code Example
Python :: primary key auto increment python django 
Python :: xargs to copy file from text files to another directory 
Python :: python global variable across files 
Python :: How to combine train and Test dataset in python 
Python :: how to add a fuction in python 
Python :: How to know size of Python list 
Python :: python datetime 
Python :: same elements of two sets in python 
Python :: count proportion pandas 
Python :: Discord python get member object by id 
Python :: replace matrix values python 
Python :: create 8ball command in discord.py 
Python :: django get_user_model() function 
Python :: slicing in python listing 
Python :: subarray in python 
Python :: Error: The file/path provided (flaskr) does not appear to exist. Please verify the path is correct. If app is not on PYTHONPATH, ensure the extension is .py 
Python :: how to create a set from a list in python 
Python :: python last 3 list elements 
Python :: jupyter dark theme vampire 
Python :: smtplib send caleneder email 
Python :: Access item in a list of lists 
Python :: Python create point from coordinates 
Python :: how to add a value to a list in python 
Python :: python telegram bot 
Python :: python create array 
Python :: python while continue 
Python :: python imaplib send email 
Python :: print with no newline 
Python :: how to create new header of a dataframe in python 
Python :: next() python 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =