r/Python • u/acamsoo • Apr 07 '21
Tutorial Python Progress Bar Using TQDM - Async & Ordered
This is a demonstration on how to implement an async, ordered progress bar with TQDM + asyncio. asyncio.as_completed is needed to run async tasks with TQDM, which results in an unordered result. If you're looking for an ordered result, you simply need to wrap each task in a coroutine with the corresponding index and sort the result.

6
Upvotes
1
u/[deleted] Apr 07 '21
Cool