(percentage)
| 41 | |
| 42 | |
| 43 | def progressBar(percentage): |
| 44 | full = int(DOWNLOAD_COLUMNS * percentage / 100) |
| 45 | bar = full * "#" + (DOWNLOAD_COLUMNS - full) * " " |
| 46 | sys.stdout.write(u"\u001b[1000D[" + bar + "] " + str(percentage) + "%") |
| 47 | sys.stdout.flush() |
| 48 | |
| 49 | |
| 50 | def downloadFromURLToFile(url, filename, show_progress=True): |
no test coverage detected
searching dependent graphs…