paco
paco copied to clipboard
how to combine pace and tqdm to see a progress bar?
names = list(location['fullname'])
async def get_location(name):
try:
return geocode(name, timeout=10)
except:
return None
result = await paco.map(get_location, tqdm(names[0:100]))
I want to get geo location of each name, this code does give me a progress bar, but the bar changes once a request is sent out, what i want is the bar only changes when a request is done. How can I get coroutines from paco.map? Thx!