INNER CODE UNIT · Python

avgKBPerSecond

Ershany/Arcane-Engine · Setup/ArcaneUtils.py:74

					avgKBPerSecond = (downloaded / 1024) / elapsedTime
				except ZeroDivisionError:
					avgKBPerSecond = 0.0

				avgSpeedString = '{:.2f} KB/s'.format(avgKBPerSecond)
				if (avgKBPerSecond > 1024):
					avgMBPerSecond = avgKBPerSecond / 1024
					avgSpeedString = '{:.2f} MB/s'.format(avgMBPerSecond)
				sys.stdout.write('\r[{}{}] {:.2f}% ({})     '.format('█' * done, '.' * (50-done), percentage, avgSpeedString))
				sys.stdout.flush()
	sys.stdout.write('\n')

def UnzipFile(filepath, deleteZipFile=True):
	zipFilePath = os.path.abspath(filepath) # get full path of files
	zipFileLocation = os.path.dirname(zipFilePath)

	zipFileContent = dict()
	zipFileContentSize = 0

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…