speedy-utils 1.1.20__py3-none-any.whl → 1.1.21__py3-none-any.whl
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.
- speedy_utils/multi_worker/process.py +3 -2
- {speedy_utils-1.1.20.dist-info → speedy_utils-1.1.21.dist-info}/METADATA +1 -1
- {speedy_utils-1.1.20.dist-info → speedy_utils-1.1.21.dist-info}/RECORD +5 -5
- {speedy_utils-1.1.20.dist-info → speedy_utils-1.1.21.dist-info}/WHEEL +0 -0
- {speedy_utils-1.1.20.dist-info → speedy_utils-1.1.21.dist-info}/entry_points.txt +0 -0
|
@@ -86,8 +86,7 @@ def multi_process(
|
|
|
86
86
|
lazy_output: bool = False,
|
|
87
87
|
progress: bool = True,
|
|
88
88
|
# backend: str = "ray", # "seq", "ray", or "fastcore"
|
|
89
|
-
backend: Literal["seq", "ray", "mp", "threadpool", "safe"]
|
|
90
|
-
backend: Literal["seq", "ray", "mp", "threadpool"] = "mp",
|
|
89
|
+
backend: Literal["seq", "ray", "mp", "threadpool", "safe"] = "mp",
|
|
91
90
|
# Additional optional knobs (accepted for compatibility)
|
|
92
91
|
batch: int | None = None,
|
|
93
92
|
ordered: bool | None = None,
|
|
@@ -183,6 +182,8 @@ def multi_process(
|
|
|
183
182
|
import concurrent.futures
|
|
184
183
|
with concurrent.futures.ThreadPoolExecutor(max_workers=workers) as executor:
|
|
185
184
|
results = list(executor.map(f_wrapped, items))
|
|
185
|
+
return results
|
|
186
|
+
|
|
186
187
|
raise ValueError(f"Unsupported backend: {backend!r}")
|
|
187
188
|
|
|
188
189
|
|
|
@@ -39,12 +39,12 @@ speedy_utils/common/utils_io.py,sha256=-RkQjYGa3zVqpgVInsdp8dbS5oLwdJdUsRz1XIUSJ
|
|
|
39
39
|
speedy_utils/common/utils_misc.py,sha256=cdEuBBpiB1xpuzj0UBDHDuTIerqsMIw37ENq6EXliOw,1795
|
|
40
40
|
speedy_utils/common/utils_print.py,sha256=syRrnSFtguxrV-elx6DDVcSGu4Qy7D_xVNZhPwbUY4A,4864
|
|
41
41
|
speedy_utils/multi_worker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
42
|
-
speedy_utils/multi_worker/process.py,sha256=
|
|
42
|
+
speedy_utils/multi_worker/process.py,sha256=0Rhr2xJWtX0PeZXPFU3zAAqbybh83DdF1C2gwHJLXls,7231
|
|
43
43
|
speedy_utils/multi_worker/thread.py,sha256=xhCPgJokCDjjPrWh6vUtCBlZgs3E6mM81WCAEKvZea0,19522
|
|
44
44
|
speedy_utils/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
45
45
|
speedy_utils/scripts/mpython.py,sha256=IvywP7Y0_V6tWfMP-4MjPvN5_KfxWF21xaLJsCIayCk,3821
|
|
46
46
|
speedy_utils/scripts/openapi_client_codegen.py,sha256=f2125S_q0PILgH5dyzoKRz7pIvNEjCkzpi4Q4pPFRZE,9683
|
|
47
|
-
speedy_utils-1.1.
|
|
48
|
-
speedy_utils-1.1.
|
|
49
|
-
speedy_utils-1.1.
|
|
50
|
-
speedy_utils-1.1.
|
|
47
|
+
speedy_utils-1.1.21.dist-info/METADATA,sha256=b_vxwYzT_2oorlbKL5NVZZ1ZVbInUw45deXmLOG0tys,8028
|
|
48
|
+
speedy_utils-1.1.21.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
49
|
+
speedy_utils-1.1.21.dist-info/entry_points.txt,sha256=1rrFMfqvaMUE9hvwGiD6vnVh98kmgy0TARBj-v0Lfhs,244
|
|
50
|
+
speedy_utils-1.1.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|