zhmiscellany 6.2.1__py3-none-any.whl → 6.2.3__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.
- zhmiscellany/_processing_supportfuncs.py +5 -5
- {zhmiscellany-6.2.1.dist-info → zhmiscellany-6.2.3.dist-info}/METADATA +2 -2
- {zhmiscellany-6.2.1.dist-info → zhmiscellany-6.2.3.dist-info}/RECORD +5 -5
- {zhmiscellany-6.2.1.dist-info → zhmiscellany-6.2.3.dist-info}/WHEEL +0 -0
- {zhmiscellany-6.2.1.dist-info → zhmiscellany-6.2.3.dist-info}/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ import io
|
|
|
8
8
|
from unittest.mock import patch
|
|
9
9
|
|
|
10
10
|
# Ray availability check
|
|
11
|
-
if sys.platform == "win32":
|
|
11
|
+
if sys.platform == "win32" or True:
|
|
12
12
|
try:
|
|
13
13
|
import ray
|
|
14
14
|
RAY_AVAILABLE = True
|
|
@@ -281,7 +281,7 @@ def synchronous_class_multiprocess(cls, *args, disable_warning=False, **kwargs):
|
|
|
281
281
|
if not RAY_AVAILABLE:
|
|
282
282
|
print("synchronous_class_multiprocess() only supports Windows! Returning None")
|
|
283
283
|
return None
|
|
284
|
-
|
|
284
|
+
|
|
285
285
|
if _ray_state == 'disabled':
|
|
286
286
|
if not disable_warning:
|
|
287
287
|
logging.warning("zhmiscellany didn't detect that you were going to be using multiprocessing functions, and ray was not initialized preemptively.\n\
|
|
@@ -295,12 +295,12 @@ All this means is that ray is still being initialized and this call to multiproc
|
|
|
295
295
|
If you want to avoid this in the future and wait until ray is ready you can add this line just after importing zhmiscellany: (Or you can pass disable_warning=True to this function call)\n\
|
|
296
296
|
from zhmiscellany._processing_supportfuncs import _ray_init_thread; _ray_init_thread.join()")
|
|
297
297
|
_ray_init_thread.join()
|
|
298
|
-
|
|
298
|
+
|
|
299
299
|
def _ready(self):
|
|
300
300
|
return True
|
|
301
301
|
|
|
302
302
|
cls._ready = _ready
|
|
303
|
-
|
|
304
|
-
remote_cls = ray.remote(cls)
|
|
303
|
+
|
|
304
|
+
remote_cls = ray.remote(num_cpus=0)(cls)
|
|
305
305
|
actor_instance = remote_cls.remote(*args, **kwargs)
|
|
306
306
|
return RayActorWrapper(actor_instance)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: zhmiscellany
|
|
3
|
-
Version: 6.2.
|
|
3
|
+
Version: 6.2.3
|
|
4
4
|
Summary: A collection of useful/interesting python libraries made by zh.
|
|
5
5
|
Home-page: https://discord.gg/ThBBAuueVJ
|
|
6
6
|
Author: zh
|
|
@@ -10,6 +10,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
10
10
|
Classifier: Operating System :: Microsoft :: Windows
|
|
11
11
|
Requires-Python: >=3.6
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
|
+
Requires-Dist: ray>=0
|
|
13
14
|
Requires-Dist: pycryptodome>=0
|
|
14
15
|
Requires-Dist: discum==1.1.0
|
|
15
16
|
Requires-Dist: requests>=0
|
|
@@ -22,7 +23,6 @@ Requires-Dist: pillow>=0
|
|
|
22
23
|
Requires-Dist: fuzzywuzzy>=0
|
|
23
24
|
Requires-Dist: orjson>=0
|
|
24
25
|
Requires-Dist: pyautogui>=0; sys_platform == "linux"
|
|
25
|
-
Requires-Dist: ray>=0; sys_platform == "win32"
|
|
26
26
|
Requires-Dist: pywin32>=0; sys_platform == "win32"
|
|
27
27
|
Requires-Dist: random-header-generator>=0; sys_platform == "win32"
|
|
28
28
|
Requires-Dist: pydirectinput>=0; sys_platform == "win32"
|
|
@@ -2,7 +2,7 @@ zhmiscellany/__init__.py,sha256=Oh3gAJRWq2aUEgkolmQyiZOQ3iey5OC4NA2XaTHuVv4,1139
|
|
|
2
2
|
zhmiscellany/_discord_supportfuncs.py,sha256=RotSpurqFtL5q6v_ST1e2Y_1qJMaHp1CDsF5i-gR4ec,6524
|
|
3
3
|
zhmiscellany/_fileio_supportfuncs.py,sha256=soibLv9nOR79sHQ2MGQH2O6MhnqdXqI7ybxHSN2Tfac,434
|
|
4
4
|
zhmiscellany/_misc_supportfuncs.py,sha256=RH1keGtoVjJOFh7MWOTJ2BJijLLeEvsMy9tNumdd6Uk,9944
|
|
5
|
-
zhmiscellany/_processing_supportfuncs.py,sha256=
|
|
5
|
+
zhmiscellany/_processing_supportfuncs.py,sha256=K6BDWce22tOKQEcfryC9hmvyQihLJHjsKq7MVJIAGmQ,11091
|
|
6
6
|
zhmiscellany/_py_resources.py,sha256=HqJs5aRLymLZ2J5Io8g6bY58pGWhN9b8vCktC2DW4KQ,229009
|
|
7
7
|
zhmiscellany/_resource_files_lookup.py,sha256=hsgPW0dngokgqWrAVAv5rUo-eobzJPjvWHt4xrOG5l0,856
|
|
8
8
|
zhmiscellany/cpp.py,sha256=XEUEoIKCDCdY5VgwNWE5oXrGjtsmGdz_MnaVwQmi2dk,179
|
|
@@ -21,7 +21,7 @@ zhmiscellany/pipes.py,sha256=zETvWP4PF-PuSzYwR1UCodY4ftNAgmCChb9DUMofXok,4657
|
|
|
21
21
|
zhmiscellany/processing.py,sha256=CUHgbNp8RetXDpc6DuojThi3T2iu_DX09P_WD8iUZ7s,11014
|
|
22
22
|
zhmiscellany/rust.py,sha256=znN6DYNoa_p-braTuDZKvUnXX8reWLFu_dG4fv2vLR0,442
|
|
23
23
|
zhmiscellany/string.py,sha256=xyqE6V5YF2nieZDcg5ZrXTIrH2D9oDRbZ5vQGz8rPys,4787
|
|
24
|
-
zhmiscellany-6.2.
|
|
25
|
-
zhmiscellany-6.2.
|
|
26
|
-
zhmiscellany-6.2.
|
|
27
|
-
zhmiscellany-6.2.
|
|
24
|
+
zhmiscellany-6.2.3.dist-info/METADATA,sha256=6oliDhPeUlJVWkiEUz3veak3sMV8V0sYvbTMCizR8a0,43872
|
|
25
|
+
zhmiscellany-6.2.3.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
|
|
26
|
+
zhmiscellany-6.2.3.dist-info/top_level.txt,sha256=ioDtsrevCI52rTxZntMPljRIBsZs73tD0hI00HektiE,13
|
|
27
|
+
zhmiscellany-6.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|