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.
@@ -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"] | None = None,
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: speedy-utils
3
- Version: 1.1.20
3
+ Version: 1.1.21
4
4
  Summary: Fast and easy-to-use package for data science
5
5
  Project-URL: Homepage, https://github.com/anhvth/speedy
6
6
  Project-URL: Repository, https://github.com/anhvth/speedy
@@ -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=hRboiWDCiLmbVNqCuTl9Wop6wFIG1yxYYYemT2kfeX8,7265
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.20.dist-info/METADATA,sha256=c5wjCJMDRupz95YYIabcRcN18IVPMj4mihf6cbTmBF0,8028
48
- speedy_utils-1.1.20.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
49
- speedy_utils-1.1.20.dist-info/entry_points.txt,sha256=1rrFMfqvaMUE9hvwGiD6vnVh98kmgy0TARBj-v0Lfhs,244
50
- speedy_utils-1.1.20.dist-info/RECORD,,
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,,