GameSentenceMiner 2.1.2__tar.gz → 2.2.0__tar.gz

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.
Files changed (32) hide show
  1. {gamesentenceminer-2.1.2 → gamesentenceminer-2.2.0/GameSentenceMiner.egg-info}/PKG-INFO +2 -6
  2. gamesentenceminer-2.2.0/GameSentenceMiner.egg-info/SOURCES.txt +27 -0
  3. gamesentenceminer-2.2.0/GameSentenceMiner.egg-info/entry_points.txt +2 -0
  4. {gamesentenceminer-2.1.2/src → gamesentenceminer-2.2.0}/GameSentenceMiner.egg-info/requires.txt +1 -5
  5. gamesentenceminer-2.2.0/GameSentenceMiner.egg-info/top_level.txt +1 -0
  6. {gamesentenceminer-2.1.2/src/GameSentenceMiner.egg-info → gamesentenceminer-2.2.0}/PKG-INFO +2 -6
  7. {gamesentenceminer-2.1.2 → gamesentenceminer-2.2.0}/pyproject.toml +4 -9
  8. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/anki.py +6 -9
  9. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/config_gui.py +4 -5
  10. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/configuration.py +4 -4
  11. gamesentenceminer-2.2.0/src/downloader/Untitled_json.py +472 -0
  12. gamesentenceminer-2.2.0/src/downloader/download_tools.py +149 -0
  13. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/ffmpeg.py +14 -11
  14. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/gametext.py +4 -4
  15. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/gsm.py +81 -51
  16. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/obs.py +40 -7
  17. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/package_updater.py +5 -2
  18. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/util.py +3 -0
  19. gamesentenceminer-2.2.0/src/vad/__init__.py +0 -0
  20. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/vad/silero_trim.py +2 -2
  21. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/vad/vosk_helper.py +2 -2
  22. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/vad/whisper_helper.py +2 -2
  23. gamesentenceminer-2.1.2/src/GameSentenceMiner.egg-info/SOURCES.txt +0 -24
  24. gamesentenceminer-2.1.2/src/GameSentenceMiner.egg-info/entry_points.txt +0 -2
  25. gamesentenceminer-2.1.2/src/GameSentenceMiner.egg-info/top_level.txt +0 -1
  26. {gamesentenceminer-2.1.2/src → gamesentenceminer-2.2.0}/GameSentenceMiner.egg-info/dependency_links.txt +0 -0
  27. {gamesentenceminer-2.1.2 → gamesentenceminer-2.2.0}/README.md +0 -0
  28. {gamesentenceminer-2.1.2 → gamesentenceminer-2.2.0}/setup.cfg +0 -0
  29. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/__init__.py +0 -0
  30. {gamesentenceminer-2.1.2/src/GameSentenceMiner/vad → gamesentenceminer-2.2.0/src/downloader}/__init__.py +0 -0
  31. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/model.py +0 -0
  32. {gamesentenceminer-2.1.2/src/GameSentenceMiner → gamesentenceminer-2.2.0/src}/notification.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: GameSentenceMiner
3
- Version: 2.1.2
3
+ Version: 2.2.0
4
4
  Summary: A tool for mining sentences from games.
5
5
  Author-email: Beangate <bpwhelan95@gmail.com>
6
6
  License: MIT License
@@ -12,7 +12,6 @@ Classifier: Operating System :: OS Independent
12
12
  Requires-Python: >=3.11
13
13
  Description-Content-Type: text/markdown
14
14
  Requires-Dist: requests~=2.32.3
15
- Requires-Dist: anki~=24.6.3
16
15
  Requires-Dist: watchdog~=5.0.2
17
16
  Requires-Dist: DateTime~=5.5
18
17
  Requires-Dist: pyperclip~=1.9.0
@@ -25,14 +24,11 @@ Requires-Dist: obs-websocket-py~=1.0
25
24
  Requires-Dist: plyer~=2.1.0
26
25
  Requires-Dist: keyboard~=0.13.5
27
26
  Requires-Dist: websockets~=13.0.1
28
- Requires-Dist: obsws_python~=1.7.0
29
- Requires-Dist: numpy~=2.0.2
30
27
  Requires-Dist: stable-ts~=2.17.5
31
- Requires-Dist: openai-whisper
32
28
  Requires-Dist: silero-vad~=5.1.2
33
29
  Requires-Dist: ttkbootstrap~=1.10.1
34
30
  Requires-Dist: dataclasses_json~=0.6.7
35
- Requires-Dist: pyinstaller
31
+ Requires-Dist: numpy
36
32
  Requires-Dist: pystray
37
33
  Requires-Dist: pywin32
38
34
 
@@ -0,0 +1,27 @@
1
+ README.md
2
+ pyproject.toml
3
+ GameSentenceMiner.egg-info/PKG-INFO
4
+ GameSentenceMiner.egg-info/SOURCES.txt
5
+ GameSentenceMiner.egg-info/dependency_links.txt
6
+ GameSentenceMiner.egg-info/entry_points.txt
7
+ GameSentenceMiner.egg-info/requires.txt
8
+ GameSentenceMiner.egg-info/top_level.txt
9
+ src/__init__.py
10
+ src/anki.py
11
+ src/config_gui.py
12
+ src/configuration.py
13
+ src/ffmpeg.py
14
+ src/gametext.py
15
+ src/gsm.py
16
+ src/model.py
17
+ src/notification.py
18
+ src/obs.py
19
+ src/package_updater.py
20
+ src/util.py
21
+ src/downloader/Untitled_json.py
22
+ src/downloader/__init__.py
23
+ src/downloader/download_tools.py
24
+ src/vad/__init__.py
25
+ src/vad/silero_trim.py
26
+ src/vad/vosk_helper.py
27
+ src/vad/whisper_helper.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ gamesentenceminer = src.gsm:main
@@ -1,5 +1,4 @@
1
1
  requests~=2.32.3
2
- anki~=24.6.3
3
2
  watchdog~=5.0.2
4
3
  DateTime~=5.5
5
4
  pyperclip~=1.9.0
@@ -12,13 +11,10 @@ obs-websocket-py~=1.0
12
11
  plyer~=2.1.0
13
12
  keyboard~=0.13.5
14
13
  websockets~=13.0.1
15
- obsws_python~=1.7.0
16
- numpy~=2.0.2
17
14
  stable-ts~=2.17.5
18
- openai-whisper
19
15
  silero-vad~=5.1.2
20
16
  ttkbootstrap~=1.10.1
21
17
  dataclasses_json~=0.6.7
22
- pyinstaller
18
+ numpy
23
19
  pystray
24
20
  pywin32
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: GameSentenceMiner
3
- Version: 2.1.2
3
+ Version: 2.2.0
4
4
  Summary: A tool for mining sentences from games.
5
5
  Author-email: Beangate <bpwhelan95@gmail.com>
6
6
  License: MIT License
@@ -12,7 +12,6 @@ Classifier: Operating System :: OS Independent
12
12
  Requires-Python: >=3.11
13
13
  Description-Content-Type: text/markdown
14
14
  Requires-Dist: requests~=2.32.3
15
- Requires-Dist: anki~=24.6.3
16
15
  Requires-Dist: watchdog~=5.0.2
17
16
  Requires-Dist: DateTime~=5.5
18
17
  Requires-Dist: pyperclip~=1.9.0
@@ -25,14 +24,11 @@ Requires-Dist: obs-websocket-py~=1.0
25
24
  Requires-Dist: plyer~=2.1.0
26
25
  Requires-Dist: keyboard~=0.13.5
27
26
  Requires-Dist: websockets~=13.0.1
28
- Requires-Dist: obsws_python~=1.7.0
29
- Requires-Dist: numpy~=2.0.2
30
27
  Requires-Dist: stable-ts~=2.17.5
31
- Requires-Dist: openai-whisper
32
28
  Requires-Dist: silero-vad~=5.1.2
33
29
  Requires-Dist: ttkbootstrap~=1.10.1
34
30
  Requires-Dist: dataclasses_json~=0.6.7
35
- Requires-Dist: pyinstaller
31
+ Requires-Dist: numpy
36
32
  Requires-Dist: pystray
37
33
  Requires-Dist: pywin32
38
34
 
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "GameSentenceMiner"
10
- version = "2.1.2"
10
+ version = "2.2.0"
11
11
  description = "A tool for mining sentences from games."
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.11"
@@ -23,7 +23,6 @@ classifiers = [
23
23
  ]
24
24
  dependencies = [
25
25
  "requests~=2.32.3",
26
- "anki~=24.6.3",
27
26
  "watchdog~=5.0.2",
28
27
  "DateTime~=5.5",
29
28
  "pyperclip~=1.9.0",
@@ -36,14 +35,11 @@ dependencies = [
36
35
  "plyer~=2.1.0",
37
36
  "keyboard~=0.13.5",
38
37
  "websockets~=13.0.1",
39
- "obsws_python~=1.7.0",
40
- "numpy~=2.0.2",
41
38
  "stable-ts~=2.17.5",
42
- "openai-whisper",
43
39
  "silero-vad~=5.1.2",
44
40
  "ttkbootstrap~=1.10.1",
45
41
  "dataclasses_json~=0.6.7",
46
- "pyinstaller",
42
+ "numpy",
47
43
  "pystray",
48
44
  "pywin32"
49
45
  ]
@@ -52,8 +48,7 @@ dependencies = [
52
48
  # call the `main()` function defined in the package’s __main__.py (or wherever
53
49
  # you’ve placed your entry function). Adjust the import path as needed.
54
50
  [project.scripts]
55
- gamesentenceminer = "GameSentenceMiner.gsm:main"
51
+ gamesentenceminer = "src.gsm:main"
56
52
 
57
53
  [tool.setuptools]
58
- packages = ["GameSentenceMiner", "GameSentenceMiner.vad"]
59
- package-dir = {"" = "src"}
54
+ packages = ["src", "src.vad", 'src.downloader']
@@ -6,15 +6,12 @@ import urllib.request
6
6
 
7
7
  import requests as req
8
8
 
9
- from . import util
10
- from . import ffmpeg
11
- from . import notification
12
- from . import obs
13
-
14
- from .configuration import *
15
- from .configuration import get_config
16
- from .gametext import get_last_two_sentences
17
- from .obs import get_current_game
9
+ from src import obs, util, notification, ffmpeg
10
+
11
+ from src.configuration import *
12
+ from src.configuration import get_config
13
+ from src.gametext import get_last_two_sentences
14
+ from src.obs import get_current_game
18
15
 
19
16
  audio_in_anki = None
20
17
  screenshot_in_anki = None
@@ -3,10 +3,9 @@ from tkinter import filedialog, messagebox, simpledialog
3
3
 
4
4
  import ttkbootstrap as ttk
5
5
 
6
- from .package_updater import check_for_updates, get_latest_version, update, get_current_version
7
- from . import configuration
8
- from . import obs
9
- from .configuration import *
6
+ from src.package_updater import check_for_updates, get_latest_version, update, get_current_version
7
+ from src import obs, configuration
8
+ from src.configuration import *
10
9
 
11
10
  settings_saved = False
12
11
  on_save = []
@@ -93,7 +92,7 @@ class ConfigApp:
93
92
  def update_now(self):
94
93
  update_available, version = check_for_updates()
95
94
  if update_available:
96
- messagebox.showinfo("Update", "GSM will now close and update")
95
+ messagebox.showinfo("Update", "GSM Will Copy the Update Command to your clipboard, please run it in a terminal.")
97
96
  success = update()
98
97
  if not success:
99
98
  messagebox.showinfo("Update Unsuccessful", "Couldn't Start Update, please update manually.")
@@ -46,9 +46,9 @@ class General:
46
46
  @dataclass_json
47
47
  @dataclass
48
48
  class Paths:
49
- folder_to_watch: str = expanduser("~/Videos/OBS")
50
- audio_destination: str = expanduser("~/Videos/OBS/Audio/")
51
- screenshot_destination: str = expanduser("~/Videos/OBS/SS/")
49
+ folder_to_watch: str = expanduser("~/Videos/GSM")
50
+ audio_destination: str = expanduser("~/Videos/GSM/Audio/")
51
+ screenshot_destination: str = expanduser("~/Videos/GSM/SS/")
52
52
  remove_video: bool = True
53
53
  remove_audio: bool = False
54
54
  remove_screenshot: bool = False
@@ -369,7 +369,7 @@ console_handler = logging.StreamHandler()
369
369
  console_handler.setLevel(logging.INFO)
370
370
 
371
371
  # Create rotating file handler with level DEBUG
372
- file_handler = RotatingFileHandler(get_log_path(), maxBytes=10_000_000, backupCount=2, encoding='utf-8')
372
+ file_handler = RotatingFileHandler(get_log_path(), maxBytes=10 * 1024 * 1024, backupCount=0, encoding='utf-8')
373
373
  file_handler.setLevel(logging.DEBUG)
374
374
 
375
375
  # Create a formatter