pycoze 0.1.188__py3-none-any.whl → 0.1.190__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.
- pycoze/ai/vram_reserve.py +1 -1
- pycoze/automation/browser/edge_driver_manager.py +10 -5
- pycoze/reference/bot.py +1 -1
- pycoze/reference/tool.py +1 -1
- {pycoze-0.1.188.dist-info → pycoze-0.1.190.dist-info}/METADATA +1 -1
- {pycoze-0.1.188.dist-info → pycoze-0.1.190.dist-info}/RECORD +9 -9
- {pycoze-0.1.188.dist-info → pycoze-0.1.190.dist-info}/LICENSE +0 -0
- {pycoze-0.1.188.dist-info → pycoze-0.1.190.dist-info}/WHEEL +0 -0
- {pycoze-0.1.188.dist-info → pycoze-0.1.190.dist-info}/top_level.txt +0 -0
pycoze/ai/vram_reserve.py
CHANGED
@@ -2,6 +2,7 @@ import os
|
|
2
2
|
import requests
|
3
3
|
from selenium.webdriver.edge.service import Service
|
4
4
|
from webdriver_manager.microsoft import EdgeChromiumDriverManager
|
5
|
+
from selenium import webdriver
|
5
6
|
|
6
7
|
|
7
8
|
# Function to check network availability
|
@@ -51,8 +52,14 @@ def get_driver_path():
|
|
51
52
|
os_type = manager._os_system_manager.get_os_type()
|
52
53
|
cache_dir = manager._cache_manager._root_dir
|
53
54
|
|
55
|
+
# Determine the correct driver filename based on the OS
|
56
|
+
if os.name == 'nt': # Windows
|
57
|
+
driver_filename = "msedgedriver.exe"
|
58
|
+
else: # macOS and Linux
|
59
|
+
driver_filename = "msedgedriver"
|
60
|
+
|
54
61
|
# Construct the driver path
|
55
|
-
driver_path = os.path.join(cache_dir, "drivers", driver_name, os_type, driver_version)
|
62
|
+
driver_path = os.path.join(cache_dir, "drivers", driver_name, os_type, driver_version, driver_filename)
|
56
63
|
# Check if the driver path exists
|
57
64
|
if os.path.exists(driver_path):
|
58
65
|
return driver_path
|
@@ -62,11 +69,9 @@ def get_driver_path():
|
|
62
69
|
# Function to get the Edge driver service
|
63
70
|
def get_edge_driver_service():
|
64
71
|
driver_path = get_driver_path()
|
65
|
-
|
72
|
+
print("driver_path", driver_path)
|
66
73
|
# Check if the driver path exists
|
67
74
|
if os.path.exists(driver_path):
|
68
75
|
return Service(driver_path)
|
69
76
|
else:
|
70
|
-
raise Exception("Network unavailable and no downloaded driver found")
|
71
|
-
|
72
|
-
|
77
|
+
raise Exception("Network unavailable and no downloaded driver found")
|
pycoze/reference/bot.py
CHANGED
pycoze/reference/tool.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
pycoze/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
pycoze/ai/__init__.py,sha256=odM2lgYSnApxw4AzLV_5AyaxL5_MLfydOSB1VmLGFyA,75
|
3
|
-
pycoze/ai/vram_reserve.py,sha256=
|
3
|
+
pycoze/ai/vram_reserve.py,sha256=brgXP42yj3yaZRgW8pfgc4Jg9EivAhcbp5W4igVHcow,4256
|
4
4
|
pycoze/automation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
pycoze/automation/browser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
pycoze/automation/browser/edge_driver_manager.py,sha256=
|
6
|
+
pycoze/automation/browser/edge_driver_manager.py,sha256=tJEGXab1XTk2LPjhpQ6NfAbRCdrsuyCDexMvYxZPUEM,3022
|
7
7
|
pycoze/bot/__init__.py,sha256=6HHMxDQVOyZM9dtSjQm9tjGnhj4h7CixD0JOvEwTi48,41
|
8
8
|
pycoze/bot/agent_chat.py,sha256=KshLVuXSnkWsp1J9xKKhoIMvAfQXg5ZyzSkPZdwcRkM,2785
|
9
9
|
pycoze/bot/bot.py,sha256=CCnBmxtmpmz7aLR_MIIiOuKR9IACo5P4uSkQXb5d0KU,3061
|
@@ -15,9 +15,9 @@ pycoze/bot/agent/agent_types/__init__.py,sha256=zmU2Kmrv5mCdfg-QlPn2H6pWxbGeq8s7
|
|
15
15
|
pycoze/bot/agent/agent_types/const.py,sha256=BfUKPrhAHREoMLHuFNG2bCIEkC1-f7K0LEqNg4RwiRE,70
|
16
16
|
pycoze/bot/agent/agent_types/openai_func_call_agent.py,sha256=SnEm5MODHn2uMsaMNqgzULM_91vqLHC0TU6ovwCOqLU,6675
|
17
17
|
pycoze/reference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
18
|
-
pycoze/reference/bot.py,sha256=
|
18
|
+
pycoze/reference/bot.py,sha256=3RUmX7arNOM6GCrS24bzRwcPjD1-nZi54j2Gqvx6iZ8,2301
|
19
19
|
pycoze/reference/lib.py,sha256=0xQJTLTHedGzQBsjuTFNBVqYc4-8Yl65gGCrAhWyOX8,2155
|
20
|
-
pycoze/reference/tool.py,sha256=
|
20
|
+
pycoze/reference/tool.py,sha256=OmrhRyi0yfvYpqoP-X8HEUEzL7UpmLmomCq6SsUjcSI,1618
|
21
21
|
pycoze/ui/__init__.py,sha256=7xAfL2lfG7-jllPJEZUJO89xUE9sNzvo1y0WmBswjBI,458
|
22
22
|
pycoze/ui/base.py,sha256=sbBZGMUtlosWHQJpxMULa1bGByeSlcldtE9QXNyiJmM,1093
|
23
23
|
pycoze/ui/color.py,sha256=cT9Ib8uNzkOKxyW0IwVj46o4LwdB1xgNCj1_Rou9d_4,854
|
@@ -27,8 +27,8 @@ pycoze/utils/__init__.py,sha256=Gi5EnrWZGMD2JRejgV4c_VLCXyvA2wwBFI_niDF5MUE,110
|
|
27
27
|
pycoze/utils/arg.py,sha256=GtfGbMTMdaK75Fwh6MpUe1pCA5X6Ep4LFG7a72YrzjI,525
|
28
28
|
pycoze/utils/env.py,sha256=W04lhvTHhAAC6EldP6kk2xrctqtu8K6kl1vDLZDNeh8,561
|
29
29
|
pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
|
30
|
-
pycoze-0.1.
|
31
|
-
pycoze-0.1.
|
32
|
-
pycoze-0.1.
|
33
|
-
pycoze-0.1.
|
34
|
-
pycoze-0.1.
|
30
|
+
pycoze-0.1.190.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
31
|
+
pycoze-0.1.190.dist-info/METADATA,sha256=vz8Tm-3rEG2KobpYMDjjYNr_QYPcnzcGjOnLbKp5ITo,726
|
32
|
+
pycoze-0.1.190.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
|
33
|
+
pycoze-0.1.190.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
34
|
+
pycoze-0.1.190.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|