paco icon indicating copy to clipboard operation
paco copied to clipboard

how to combine pace and tqdm to see a progress bar?

Open zouhx11 opened this issue 5 years ago • 1 comments

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]))

zouhx11 avatar Apr 05 '19 10:04 zouhx11

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!

zouhx11 avatar Apr 05 '19 11:04 zouhx11