GameSentenceMiner 2.8.24__py3-none-any.whl → 2.8.25__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.
- GameSentenceMiner/gametext.py +2 -1
- GameSentenceMiner/owocr/owocr/run.py +20 -19
- GameSentenceMiner/text_log.py +2 -2
- {gamesentenceminer-2.8.24.dist-info → gamesentenceminer-2.8.25.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.8.24.dist-info → gamesentenceminer-2.8.25.dist-info}/RECORD +9 -9
- {gamesentenceminer-2.8.24.dist-info → gamesentenceminer-2.8.25.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.8.24.dist-info → gamesentenceminer-2.8.25.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.8.24.dist-info → gamesentenceminer-2.8.25.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.8.24.dist-info → gamesentenceminer-2.8.25.dist-info}/top_level.txt +0 -0
GameSentenceMiner/gametext.py
CHANGED
@@ -99,7 +99,8 @@ async def handle_new_text_event(current_clipboard, line_time=None):
|
|
99
99
|
logger.info(f"Line Received: {current_line_after_regex}")
|
100
100
|
current_line_time = line_time if line_time else datetime.now()
|
101
101
|
add_line(current_line_after_regex, line_time)
|
102
|
-
|
102
|
+
if len(get_text_log().values) > 0:
|
103
|
+
await add_event_to_texthooker(get_text_log()[-1])
|
103
104
|
|
104
105
|
def reset_line_hotkey_pressed():
|
105
106
|
global current_line_time
|
@@ -1,28 +1,9 @@
|
|
1
|
-
import threading
|
2
|
-
|
3
|
-
import pyperclipfix
|
4
|
-
import mss
|
5
|
-
import asyncio
|
6
|
-
import websockets
|
7
|
-
import socketserver
|
8
|
-
import queue
|
9
|
-
|
10
|
-
from datetime import datetime
|
11
|
-
from PIL import Image, ImageDraw
|
12
|
-
from PIL import UnidentifiedImageError
|
13
|
-
from pynput import keyboard
|
14
|
-
from desktop_notifier import DesktopNotifierSync
|
15
|
-
import psutil
|
16
|
-
|
17
|
-
import inspect
|
18
|
-
from .ocr import *
|
19
1
|
try:
|
20
2
|
from .secret import *
|
21
3
|
except ImportError:
|
22
4
|
pass
|
23
5
|
from .config import Config
|
24
6
|
from .screen_coordinate_picker import get_screen_selection
|
25
|
-
from ...configuration import get_temporary_directory
|
26
7
|
|
27
8
|
try:
|
28
9
|
import win32gui
|
@@ -48,6 +29,26 @@ except ImportError:
|
|
48
29
|
pass
|
49
30
|
|
50
31
|
|
32
|
+
import threading
|
33
|
+
import pyperclipfix
|
34
|
+
import mss
|
35
|
+
import asyncio
|
36
|
+
import websockets
|
37
|
+
import socketserver
|
38
|
+
import queue
|
39
|
+
import time
|
40
|
+
|
41
|
+
from datetime import datetime
|
42
|
+
from PIL import Image, ImageDraw
|
43
|
+
from PIL import UnidentifiedImageError
|
44
|
+
from pynput import keyboard
|
45
|
+
from desktop_notifier import DesktopNotifierSync
|
46
|
+
import psutil
|
47
|
+
|
48
|
+
import inspect
|
49
|
+
from .ocr import *
|
50
|
+
|
51
|
+
|
51
52
|
config = None
|
52
53
|
|
53
54
|
|
GameSentenceMiner/text_log.py
CHANGED
@@ -44,8 +44,8 @@ class GameText:
|
|
44
44
|
self.values = []
|
45
45
|
self.values_dict = {}
|
46
46
|
|
47
|
-
def __getitem__(self,
|
48
|
-
return self.values[
|
47
|
+
def __getitem__(self, index):
|
48
|
+
return self.values[index]
|
49
49
|
|
50
50
|
def get_by_id(self, line_id: str) -> Optional[GameLine]:
|
51
51
|
if not self.values_dict:
|
@@ -4,13 +4,13 @@ GameSentenceMiner/config_gui.py,sha256=R7pUJDXCP7unGtBpuUjL0-8iWvY6LXRCYckHIrwkv
|
|
4
4
|
GameSentenceMiner/configuration.py,sha256=ndnxuQbLfhMruHld-yK3UjWt1DcXlVhaLRZD8l6SJ0E,22562
|
5
5
|
GameSentenceMiner/electron_config.py,sha256=dGcPYCISPehXubYSzsDuI2Gl092MYK0u3bTnkL9Jh1Y,9787
|
6
6
|
GameSentenceMiner/ffmpeg.py,sha256=MUfKfqM8CoxPwH6Glo0JnGJjxmD4htM9Y3rf0ZysbRk,14663
|
7
|
-
GameSentenceMiner/gametext.py,sha256=
|
7
|
+
GameSentenceMiner/gametext.py,sha256=VogQDs-VQ4dorqy8uvoklweeS58r3Th_yP-zn36e0u4,5556
|
8
8
|
GameSentenceMiner/gsm.py,sha256=B-84l3mCT4N1jidelXI0N8L9VPVdWcjoYl2NiS_xI_c,25388
|
9
9
|
GameSentenceMiner/model.py,sha256=JdnkT4VoPOXmOpRgFdvERZ09c9wLN6tUJxdrKlGZcqo,5305
|
10
10
|
GameSentenceMiner/notification.py,sha256=FY39ChSRK0Y8TQ6lBGsLnpZUFPtFpSy2tweeXVoV7kc,2809
|
11
11
|
GameSentenceMiner/obs.py,sha256=-tzVHejaGDXyERaDrRqrKmbgwT13oJKxTivGwfUij7Y,10284
|
12
12
|
GameSentenceMiner/package.py,sha256=YlS6QRMuVlm6mdXx0rlXv9_3erTGS21jaP3PNNWfAH0,1250
|
13
|
-
GameSentenceMiner/text_log.py,sha256=
|
13
|
+
GameSentenceMiner/text_log.py,sha256=MD7LB5D-v4G0Bnm3uGvZQ0aV38Fcj4E0vgq7mmyQ7_4,5157
|
14
14
|
GameSentenceMiner/util.py,sha256=LzWGIDZb8NLv-RyrE_d6ycoQEwM1zpaDhWp0LKb6_Zc,8928
|
15
15
|
GameSentenceMiner/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
GameSentenceMiner/ai/ai_prompting.py,sha256=uTtXIDRpcQqPT4EC-R_pwRP9pBmZ64I6vMDOexhJRp8,9505
|
@@ -31,7 +31,7 @@ GameSentenceMiner/owocr/owocr/__main__.py,sha256=XQaqZY99EKoCpU-gWQjNbTs7Kg17HvB
|
|
31
31
|
GameSentenceMiner/owocr/owocr/config.py,sha256=n-xtVylb2Q_H84jb1ZsIGxPQjTNnyvnRny1RhtaLJM8,7550
|
32
32
|
GameSentenceMiner/owocr/owocr/lens_betterproto.py,sha256=oNoISsPilVVRBBPVDtb4-roJtAhp8ZAuFTci3TGXtMc,39141
|
33
33
|
GameSentenceMiner/owocr/owocr/ocr.py,sha256=KDW9twGdgqE2UsmefxEvJmQVjCho_ll256LgoCcO_qQ,43242
|
34
|
-
GameSentenceMiner/owocr/owocr/run.py,sha256=
|
34
|
+
GameSentenceMiner/owocr/owocr/run.py,sha256=u8raw0KUSKZbMWxVWblKULGtA2walHM54PrK3A_2b_U,51001
|
35
35
|
GameSentenceMiner/owocr/owocr/screen_coordinate_picker.py,sha256=fjJ3CSXLti3WboGPpmsa7MWOwIXsfpHC8N4zKahGGY0,3346
|
36
36
|
GameSentenceMiner/vad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
37
|
GameSentenceMiner/vad/silero_trim.py,sha256=ULf3zwS-JMsY82cKF7gZxREHw8L6lgpWF2U1YqgE9Oc,1681
|
@@ -51,9 +51,9 @@ GameSentenceMiner/web/static/web-app-manifest-512x512.png,sha256=wyqgCWCrLEUxSRX
|
|
51
51
|
GameSentenceMiner/web/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
52
52
|
GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
|
53
53
|
GameSentenceMiner/web/templates/utility.html,sha256=NUp4Yjs6_j7YeqsM2rcF0LzwS6nXSBUWJDl-k2E8BbM,16270
|
54
|
-
gamesentenceminer-2.8.
|
55
|
-
gamesentenceminer-2.8.
|
56
|
-
gamesentenceminer-2.8.
|
57
|
-
gamesentenceminer-2.8.
|
58
|
-
gamesentenceminer-2.8.
|
59
|
-
gamesentenceminer-2.8.
|
54
|
+
gamesentenceminer-2.8.25.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
55
|
+
gamesentenceminer-2.8.25.dist-info/METADATA,sha256=T81bjWrg4heXOyw8-IjJl71AJWc_BqXZIlF00TcH3uM,7165
|
56
|
+
gamesentenceminer-2.8.25.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
57
|
+
gamesentenceminer-2.8.25.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
58
|
+
gamesentenceminer-2.8.25.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
59
|
+
gamesentenceminer-2.8.25.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|