webscout 7.8__py3-none-any.whl → 8.0__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.
Potentially problematic release.
This version of webscout might be problematic. Click here for more details.
- webscout/Bard.py +5 -25
- webscout/DWEBS.py +476 -476
- webscout/Extra/GitToolkit/__init__.py +10 -0
- webscout/Extra/GitToolkit/gitapi/__init__.py +12 -0
- webscout/Extra/GitToolkit/gitapi/repository.py +195 -0
- webscout/Extra/GitToolkit/gitapi/user.py +96 -0
- webscout/Extra/GitToolkit/gitapi/utils.py +62 -0
- webscout/Extra/YTToolkit/ytapi/video.py +232 -103
- webscout/Extra/__init__.py +2 -0
- webscout/Extra/autocoder/__init__.py +1 -1
- webscout/Extra/autocoder/{rawdog.py → autocoder.py} +849 -849
- webscout/Extra/tempmail/__init__.py +26 -0
- webscout/Extra/tempmail/async_utils.py +141 -0
- webscout/Extra/tempmail/base.py +156 -0
- webscout/Extra/tempmail/cli.py +187 -0
- webscout/Extra/tempmail/mail_tm.py +361 -0
- webscout/Extra/tempmail/temp_mail_io.py +292 -0
- webscout/Provider/AISEARCH/__init__.py +5 -1
- webscout/Provider/AISEARCH/hika_search.py +194 -0
- webscout/Provider/AISEARCH/monica_search.py +246 -0
- webscout/Provider/AISEARCH/scira_search.py +320 -0
- webscout/Provider/AISEARCH/webpilotai_search.py +281 -0
- webscout/Provider/AllenAI.py +255 -122
- webscout/Provider/DeepSeek.py +1 -2
- webscout/Provider/Deepinfra.py +296 -286
- webscout/Provider/ElectronHub.py +709 -716
- webscout/Provider/ExaAI.py +261 -0
- webscout/Provider/ExaChat.py +28 -6
- webscout/Provider/Gemini.py +167 -165
- webscout/Provider/GithubChat.py +2 -1
- webscout/Provider/Groq.py +38 -24
- webscout/Provider/LambdaChat.py +2 -1
- webscout/Provider/Netwrck.py +3 -2
- webscout/Provider/OpenGPT.py +199 -0
- webscout/Provider/PI.py +39 -24
- webscout/Provider/TextPollinationsAI.py +232 -230
- webscout/Provider/Youchat.py +326 -296
- webscout/Provider/__init__.py +10 -4
- webscout/Provider/ai4chat.py +58 -56
- webscout/Provider/akashgpt.py +34 -22
- webscout/Provider/copilot.py +427 -427
- webscout/Provider/freeaichat.py +9 -2
- webscout/Provider/labyrinth.py +121 -20
- webscout/Provider/llmchatco.py +306 -0
- webscout/Provider/scira_chat.py +271 -0
- webscout/Provider/typefully.py +280 -0
- webscout/Provider/uncovr.py +312 -299
- webscout/Provider/yep.py +64 -12
- webscout/__init__.py +38 -36
- webscout/cli.py +293 -293
- webscout/conversation.py +350 -17
- webscout/litprinter/__init__.py +59 -667
- webscout/optimizers.py +419 -419
- webscout/update_checker.py +14 -12
- webscout/version.py +1 -1
- webscout/webscout_search.py +1346 -1282
- webscout/webscout_search_async.py +877 -813
- {webscout-7.8.dist-info → webscout-8.0.dist-info}/METADATA +44 -39
- {webscout-7.8.dist-info → webscout-8.0.dist-info}/RECORD +63 -46
- webscout/Provider/DARKAI.py +0 -225
- webscout/Provider/EDITEE.py +0 -192
- webscout/litprinter/colors.py +0 -54
- {webscout-7.8.dist-info → webscout-8.0.dist-info}/LICENSE.md +0 -0
- {webscout-7.8.dist-info → webscout-8.0.dist-info}/WHEEL +0 -0
- {webscout-7.8.dist-info → webscout-8.0.dist-info}/entry_points.txt +0 -0
- {webscout-7.8.dist-info → webscout-8.0.dist-info}/top_level.txt +0 -0
webscout/update_checker.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
from pkg_resources import get_distribution, DistributionNotFound as PackageNotFoundError
|
|
2
|
+
def get_package_version(package_name: str) -> str:
|
|
3
|
+
return get_distribution(package_name).version
|
|
1
4
|
"""
|
|
2
5
|
Webscout Update Checker
|
|
3
6
|
>>> from webscout import check_for_updates
|
|
@@ -10,8 +13,12 @@ from typing import Optional, Dict, Any, Literal
|
|
|
10
13
|
|
|
11
14
|
import requests
|
|
12
15
|
from packaging import version
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
|
|
17
|
+
# Constants
|
|
18
|
+
PYPI_URL = "https://pypi.org/pypi/webscout/json"
|
|
19
|
+
|
|
20
|
+
# Create a session for HTTP requests
|
|
21
|
+
session = requests.Session()
|
|
15
22
|
|
|
16
23
|
# Version comparison result type
|
|
17
24
|
VersionCompareResult = Literal[-1, 0, 1]
|
|
@@ -31,8 +38,6 @@ def get_installed_version() -> Optional[str]:
|
|
|
31
38
|
return get_package_version('webscout')
|
|
32
39
|
except PackageNotFoundError:
|
|
33
40
|
return None
|
|
34
|
-
except Exception:
|
|
35
|
-
return None
|
|
36
41
|
|
|
37
42
|
def get_pypi_version() -> Optional[str]:
|
|
38
43
|
"""Get the latest version available on PyPI.
|
|
@@ -46,14 +51,11 @@ def get_pypi_version() -> Optional[str]:
|
|
|
46
51
|
'2.0.0'
|
|
47
52
|
"""
|
|
48
53
|
try:
|
|
49
|
-
response =
|
|
50
|
-
"https://pypi.org/pypi/webscout/json",
|
|
51
|
-
timeout=10
|
|
52
|
-
)
|
|
54
|
+
response = session.get(PYPI_URL, timeout=10)
|
|
53
55
|
response.raise_for_status()
|
|
54
56
|
data: Dict[str, Any] = response.json()
|
|
55
57
|
return data['info']['version']
|
|
56
|
-
except (requests.RequestException, KeyError, ValueError
|
|
58
|
+
except (requests.RequestException, KeyError, ValueError):
|
|
57
59
|
return None
|
|
58
60
|
|
|
59
61
|
def version_compare(v1: str, v2: str) -> VersionCompareResult:
|
|
@@ -78,7 +80,7 @@ def version_compare(v1: str, v2: str) -> VersionCompareResult:
|
|
|
78
80
|
if version1 > version2:
|
|
79
81
|
return 1
|
|
80
82
|
return 0
|
|
81
|
-
except
|
|
83
|
+
except version.InvalidVersion:
|
|
82
84
|
return 0
|
|
83
85
|
|
|
84
86
|
def get_update_message(installed: str, latest: str) -> Optional[str]:
|
|
@@ -116,11 +118,11 @@ def check_for_updates() -> Optional[str]:
|
|
|
116
118
|
installed_version = get_installed_version()
|
|
117
119
|
if not installed_version:
|
|
118
120
|
return None
|
|
119
|
-
|
|
121
|
+
|
|
120
122
|
latest_version = get_pypi_version()
|
|
121
123
|
if not latest_version:
|
|
122
124
|
return None
|
|
123
|
-
|
|
125
|
+
|
|
124
126
|
return get_update_message(installed_version, latest_version)
|
|
125
127
|
|
|
126
128
|
if __name__ == "__main__":
|
webscout/version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "
|
|
1
|
+
__version__ = "8.0"
|
|
2
2
|
__prog__ = "webscout"
|