zhmiscellany 5.7.9__py3-none-any.whl → 6.0.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zhmiscellany
3
- Version: 5.7.9
3
+ Version: 6.0.9
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,19 +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
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"
26
27
 
27
28
  `zhmiscellany`,
28
29
  =
@@ -41,7 +42,7 @@ Introduction
41
42
 
42
43
  Can be installed with `pip install zhmiscellany`
43
44
 
44
- Currently, the package stands at 141 functions/classes/bindings across 15 modules.
45
+ Currently, the package stands at 148 functions/classes/bindings across 15 modules.
45
46
 
46
47
  The git repository for this package can be found [here](https://github.com/zen-ham/zhmiscellany). The docs also look nicer on github.
47
48
 
@@ -1348,6 +1349,15 @@ Very efficiently deduplicates an iterable such as a list and returns a list.
1348
1349
 
1349
1350
  #
1350
1351
 
1352
+ `zhmiscellany.processing.thread_join_return()`
1353
+ ---
1354
+
1355
+ `zhmiscellany.processing.thread_join_return()`
1356
+
1357
+ Just a thread, but it returns whatever value was returned by the function inside it when .join() is called so you can use the data.
1358
+
1359
+ #
1360
+
1351
1361
  ---
1352
1362
  `zhmiscellany.string`
1353
1363
  ---
@@ -1527,6 +1537,24 @@ keyboard.wait() requires a clean press of the specified key, and concurrent key
1527
1537
 
1528
1538
  #
1529
1539
 
1540
+ `zhmiscellany.macro.record_actions_to_code()`
1541
+ ---
1542
+
1543
+ `zhmiscellany.macro.record_actions_to_code(RECORD_MOUSE_MOVEMENT=False, STOP_KEY='f9')`
1544
+
1545
+ Records keyboard and mouse events and generates zhmiscellany.macro code to emulate them, I'm so tired..
1546
+
1547
+ #
1548
+
1549
+ `zhmiscellany.macro.is_key_pressed_async()`
1550
+ ---
1551
+
1552
+ `zhmiscellany.macro.is_key_pressed_async(vk_code)`
1553
+
1554
+ See if a key is pressed.
1555
+
1556
+ #
1557
+
1530
1558
  ---
1531
1559
  `zhmiscellany.cpp`
1532
1560
  ---
@@ -1634,3 +1662,39 @@ Sends data to a named pipe asynchronously using a background thread.
1634
1662
  A lightweight Python class that displays a customizable, semi-transparent, click-through colored rectangle overlay on the screen for visual status indication, such as if you had a complex macro/automation script and wanted to be able to see what step it's currently on.
1635
1663
 
1636
1664
  #
1665
+
1666
+ `zhmiscellany.gui.get_focused_window()`
1667
+ ---
1668
+
1669
+ `zhmiscellany.gui.get_focused_window()`
1670
+
1671
+ Return the window that currently has the keyboard focus.
1672
+
1673
+ #
1674
+
1675
+ `zhmiscellany.gui.get_window_rect()`
1676
+ ---
1677
+
1678
+ `zhmiscellany.gui.get_window_rect(hwnd)`
1679
+
1680
+ Return the bounding rectangle of a window.
1681
+
1682
+ #
1683
+
1684
+ `zhmiscellany.gui.set_window_pos()`
1685
+ ---
1686
+
1687
+ `zhmiscellany.gui.set_window_pos(hwnd, x: int, y: int, w: int, h: int)`
1688
+
1689
+ Move (and optionally resize) a window.
1690
+
1691
+ #
1692
+
1693
+ `zhmiscellany.gui.find_window_by_title_fuzzy()`
1694
+ ---
1695
+
1696
+ `zhmiscellany.gui.find_window_by_title_fuzzy(title_query, threshold=70)`
1697
+
1698
+ Find a window HWND by rough name.
1699
+
1700
+ #
@@ -1,27 +1,27 @@
1
1
  zhmiscellany/__init__.py,sha256=Oh3gAJRWq2aUEgkolmQyiZOQ3iey5OC4NA2XaTHuVv4,1139
2
2
  zhmiscellany/_discord_supportfuncs.py,sha256=RotSpurqFtL5q6v_ST1e2Y_1qJMaHp1CDsF5i-gR4ec,6524
3
- zhmiscellany/_fileio_supportfuncs.py,sha256=OIboEBVahqbpG1wbtrhAjoFV-oPylFVmOENOByawaX0,365
4
- zhmiscellany/_misc_supportfuncs.py,sha256=y5hlFjenJTrEPjR9VH0F7X9JhUWSV-Gx-fahNzyMMU8,7003
5
- zhmiscellany/_processing_supportfuncs.py,sha256=aZKWIfJW_lVaQs_EyGGBhmoMc6btA38X2hY6A3kTxN8,10341
3
+ zhmiscellany/_fileio_supportfuncs.py,sha256=soibLv9nOR79sHQ2MGQH2O6MhnqdXqI7ybxHSN2Tfac,434
4
+ zhmiscellany/_misc_supportfuncs.py,sha256=zD7LjbRCUC3wMuCS90jum8m_mNw1ZmW7ejPl7IZ9Nbg,11486
5
+ zhmiscellany/_processing_supportfuncs.py,sha256=u5dzW-2OtyViC74r5fhqd5_2uQ92ZhieRJRTJMevqbg,11071
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
9
9
  zhmiscellany/dict.py,sha256=0BZJ5eK-MurAHYV1OPa0jdGTr-QEWos7ZM0npb-tN9I,81
10
- zhmiscellany/discord.py,sha256=bq4fBBIykQrwBKWeJ_Ia5ZtMjP9RfRheOa7fyWZBNjo,19338
10
+ zhmiscellany/discord.py,sha256=nzXjRnJbuYbuH4hScqqdsF61VeXx8xiYrwp_AKTWt9o,19774
11
11
  zhmiscellany/fileio.py,sha256=KmRnWWZJWBc5Or3_mKcRY2ehE_Fuk870iS-imtyERyg,18169
12
- zhmiscellany/gui.py,sha256=VgT5j5UIr-wWyL2P1qCHSNL7RrvZWDlm0TX00JGWmKo,7404
12
+ zhmiscellany/gui.py,sha256=8aOd4raEmaQJOOhr1CeVriYIOvy-Bw2FcoZMpKKlBng,10158
13
13
  zhmiscellany/image.py,sha256=qUjxiYpc2VVZp2vwr1vN36O2PVQ7YlMKzhegQ1u4c0M,8198
14
14
  zhmiscellany/list.py,sha256=S8Z85bLJEP9lk2JkGpzUcG6kpRB7a-NWDIHMPiF5bKo,1473
15
- zhmiscellany/macro.py,sha256=cerHp2YZGGDr-d7r__PV346TNOiW_GY9NecDwx678Pw,16857
15
+ zhmiscellany/macro.py,sha256=kKtKYoHLSnBBHyGl8FlnfMaAoraKKSK023VA-mOezO0,27861
16
16
  zhmiscellany/math.py,sha256=btOQTe_GvqP0A7Zz84tmN_c8j1NGe_mKnhmAt40lhLU,2482
17
- zhmiscellany/misc.py,sha256=BsTbRWlXI5LZBG7Bl2MgLzHESyCMJnr_KNZAf2wY_H4,29689
18
- zhmiscellany/netio.py,sha256=GTamo5cJn4P6u8V_kgZ9kL8qeMUE7OQAmYkmj9Sp_GA,2236
17
+ zhmiscellany/misc.py,sha256=i4ZZ4ivfSfzjqXPe0etrK9l9zXk-TK6I9HRtts63YHc,30482
18
+ zhmiscellany/netio.py,sha256=VCqlo3ev_iOTTu5sXTZQwsYU0WMbAlOTDRsJ5Dj5-fc,2519
19
19
  zhmiscellany/pastebin.py,sha256=TbZ3DqFYXo5qt5d95ugrofYoptlzKkjXUr7VnEqa6ks,6357
20
- zhmiscellany/pipes.py,sha256=PxO4aykFzC60xbTQuc66KzZYIxiW0KPebXZbncD2HcU,3795
21
- zhmiscellany/processing.py,sha256=srwlV8FZ--svF5e6rZZxhIs_6ZjOAwq2OcQEf6T2Le8,10410
20
+ zhmiscellany/pipes.py,sha256=zETvWP4PF-PuSzYwR1UCodY4ftNAgmCChb9DUMofXok,4657
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-5.7.9.dist-info/METADATA,sha256=5q8pZMvjZlOT4GDo1msAM1FeUKxC9Q7YxY-xID2Hmwc,42153
25
- zhmiscellany-5.7.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
26
- zhmiscellany-5.7.9.dist-info/top_level.txt,sha256=ioDtsrevCI52rTxZntMPljRIBsZs73tD0hI00HektiE,13
27
- zhmiscellany-5.7.9.dist-info/RECORD,,
24
+ zhmiscellany-6.0.9.dist-info/METADATA,sha256=6XEuRXVoVBvCorsRSFU8Rm2ZVr81aYO8jVn8ZIAnwGY,43560
25
+ zhmiscellany-6.0.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
26
+ zhmiscellany-6.0.9.dist-info/top_level.txt,sha256=ioDtsrevCI52rTxZntMPljRIBsZs73tD0hI00HektiE,13
27
+ zhmiscellany-6.0.9.dist-info/RECORD,,