This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from multiprocessing import Process, Value | |
class spinner(): | |
def __init__(self, desc="", animation="|/-\\", end="✔", sleep=0.05): | |
self.text = desc | |
self.end = end | |
self.animation = animation | |
self.sleep = sleep | |
self.idx = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from random import randrange | |
from multiprocessing.pool import ThreadPool | |
import tqdm | |
def func_call(position, total): | |
text = 'progressbar #{position}'.format(position=position) |