relib 1.2.5__tar.gz → 1.2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {relib-1.2.5 → relib-1.2.6}/PKG-INFO +1 -1
- {relib-1.2.5 → relib-1.2.6}/pyproject.toml +1 -1
- {relib-1.2.5 → relib-1.2.6}/relib/system.py +3 -2
- {relib-1.2.5 → relib-1.2.6}/uv.lock +1 -1
- {relib-1.2.5 → relib-1.2.6}/.gitignore +0 -0
- {relib-1.2.5 → relib-1.2.6}/LICENSE +0 -0
- {relib-1.2.5 → relib-1.2.6}/README.md +0 -0
- {relib-1.2.5 → relib-1.2.6}/relib/__init__.py +0 -0
- {relib-1.2.5 → relib-1.2.6}/relib/hashing.py +0 -0
- {relib-1.2.5 → relib-1.2.6}/relib/measure_duration.py +0 -0
- {relib-1.2.5 → relib-1.2.6}/relib/utils.py +0 -0
@@ -36,10 +36,11 @@ async def roll_tasks[T](tasks: Iterable[Awaitable[T]], workers: int, progress=Fa
|
|
36
36
|
semaphore = asyncio.Semaphore(workers)
|
37
37
|
if not progress:
|
38
38
|
return await asyncio.gather(*(worker(task, semaphore) for task in tasks))
|
39
|
+
|
39
40
|
from tqdm import tqdm
|
40
|
-
|
41
|
+
tasks = tasks if isinstance(tasks, list) else list(tasks)
|
41
42
|
with tqdm(total=len(tasks)) as pbar:
|
42
|
-
update =
|
43
|
+
update = functools.partial(pbar.update, 1)
|
43
44
|
return await asyncio.gather(*(worker(task, semaphore, update) for task in tasks))
|
44
45
|
|
45
46
|
def as_async(num_workers=default_num_workers) -> Callable[[Callable[P, R]], Callable[P, Awaitable[R]]]:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|