zhmiscellany 6.0.3__py3-none-any.whl → 6.0.6__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/macro.py CHANGED
@@ -28,12 +28,12 @@ def click_pixel(x=None, y=None, click_duration=None, right_click=False, middle_c
28
28
  y = x[1]
29
29
  x = x[0]
30
30
 
31
- def stochastic_round(x):
32
- negative = x < 0
31
+ def stochastic_round(val):
32
+ negative = val < 0
33
33
  if negative:
34
- x = x * -1
35
- floor = int(x)
36
- out = floor + (random.random() < (x - floor))
34
+ val = val * -1
35
+ floor = int(val)
36
+ out = floor + (random.random() < (val - floor))
37
37
  if negative:
38
38
  out = out * -1
39
39
  return out
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zhmiscellany
3
- Version: 6.0.3
3
+ Version: 6.0.6
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,20 +10,20 @@ 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
14
13
  Requires-Dist: pycryptodome>=0
15
- Requires-Dist: pywin32>=0
16
14
  Requires-Dist: discum==1.1.0
17
15
  Requires-Dist: requests>=0
18
- Requires-Dist: random-header-generator>=0
19
16
  Requires-Dist: dill>=0
20
17
  Requires-Dist: numpy>=0
21
18
  Requires-Dist: keyboard>=0
22
19
  Requires-Dist: psutil>=0
23
20
  Requires-Dist: kthread>=0
24
- Requires-Dist: pydirectinput>=0
25
21
  Requires-Dist: pillow>=0
26
22
  Requires-Dist: fuzzywuzzy>=0
23
+ Requires-Dist: ray>=0; sys_platform == "win32"
24
+ Requires-Dist: pywin32>=0; sys_platform == "win32"
25
+ Requires-Dist: random-header-generator>=0; sys_platform == "win32"
26
+ Requires-Dist: pydirectinput>=0; sys_platform == "win32"
27
27
 
28
28
  `zhmiscellany`,
29
29
  =
@@ -12,7 +12,7 @@ zhmiscellany/fileio.py,sha256=KmRnWWZJWBc5Or3_mKcRY2ehE_Fuk870iS-imtyERyg,18169
12
12
  zhmiscellany/gui.py,sha256=w1b63jt4qtnnGLImhRXJA5xkjGsKNIT65z0CmwCJgtQ,8939
13
13
  zhmiscellany/image.py,sha256=qUjxiYpc2VVZp2vwr1vN36O2PVQ7YlMKzhegQ1u4c0M,8198
14
14
  zhmiscellany/list.py,sha256=S8Z85bLJEP9lk2JkGpzUcG6kpRB7a-NWDIHMPiF5bKo,1473
15
- zhmiscellany/macro.py,sha256=GuXuAz3d-pcLiHAkHaNpyPVvGe63RSbhutrA9QLRFaQ,26649
15
+ zhmiscellany/macro.py,sha256=LR9f6Kb9slNXf1QCMjqEdePvqFr4jmIv2K7NuPWloYc,26661
16
16
  zhmiscellany/math.py,sha256=btOQTe_GvqP0A7Zz84tmN_c8j1NGe_mKnhmAt40lhLU,2482
17
17
  zhmiscellany/misc.py,sha256=BsTbRWlXI5LZBG7Bl2MgLzHESyCMJnr_KNZAf2wY_H4,29689
18
18
  zhmiscellany/netio.py,sha256=GTamo5cJn4P6u8V_kgZ9kL8qeMUE7OQAmYkmj9Sp_GA,2236
@@ -21,7 +21,7 @@ zhmiscellany/pipes.py,sha256=PxO4aykFzC60xbTQuc66KzZYIxiW0KPebXZbncD2HcU,3795
21
21
  zhmiscellany/processing.py,sha256=sDKIbzG9TNFyT6yJ4TJL59taG-59_v3CBLekVSLrwgE,10899
22
22
  zhmiscellany/rust.py,sha256=znN6DYNoa_p-braTuDZKvUnXX8reWLFu_dG4fv2vLR0,442
23
23
  zhmiscellany/string.py,sha256=xyqE6V5YF2nieZDcg5ZrXTIrH2D9oDRbZ5vQGz8rPys,4787
24
- zhmiscellany-6.0.3.dist-info/METADATA,sha256=bDi3EVy4ncXtrd6K6b8GkRUc6bs2hGEM2YdGM0Tjqqo,43460
25
- zhmiscellany-6.0.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
26
- zhmiscellany-6.0.3.dist-info/top_level.txt,sha256=ioDtsrevCI52rTxZntMPljRIBsZs73tD0hI00HektiE,13
27
- zhmiscellany-6.0.3.dist-info/RECORD,,
24
+ zhmiscellany-6.0.6.dist-info/METADATA,sha256=lkQz5XnWv-58g5Arhp1f5kL9B_zck6J91hIufyZ4eQQ,43560
25
+ zhmiscellany-6.0.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
26
+ zhmiscellany-6.0.6.dist-info/top_level.txt,sha256=ioDtsrevCI52rTxZntMPljRIBsZs73tD0hI00HektiE,13
27
+ zhmiscellany-6.0.6.dist-info/RECORD,,