webscout 2.2__py3-none-any.whl → 2.3b0__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/AIauto.py +54 -13
- webscout/__init__.py +97 -94
- webscout/async_providers.py +9 -9
- webscout/g4f.py +2 -2
- {webscout-2.2.dist-info → webscout-2.3b0.dist-info}/METADATA +6 -3
- {webscout-2.2.dist-info → webscout-2.3b0.dist-info}/RECORD +10 -10
- webscout-2.3b0.dist-info/entry_points.txt +3 -0
- webscout-2.2.dist-info/entry_points.txt +0 -6
- {webscout-2.2.dist-info → webscout-2.3b0.dist-info}/LICENSE.md +0 -0
- {webscout-2.2.dist-info → webscout-2.3b0.dist-info}/WHEEL +0 -0
- {webscout-2.2.dist-info → webscout-2.3b0.dist-info}/top_level.txt +0 -0
webscout/AIauto.py
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
|
-
from webscout.
|
|
2
|
-
from webscout
|
|
3
|
-
from webscout
|
|
4
|
-
from webscout
|
|
5
|
-
from webscout
|
|
6
|
-
from webscout
|
|
7
|
-
from webscout
|
|
8
|
-
from webscout
|
|
9
|
-
from webscout
|
|
10
|
-
from webscout
|
|
1
|
+
from webscout.AIbase import Provider, AsyncProvider
|
|
2
|
+
from webscout import OPENGPT, AsyncOPENGPT
|
|
3
|
+
from webscout import KOBOLDAI, AsyncKOBOLDAI
|
|
4
|
+
from webscout import PhindSearch, AsyncPhindSearch
|
|
5
|
+
from webscout import LLAMA2, AsyncLLAMA2
|
|
6
|
+
from webscout import BLACKBOXAI, AsyncBLACKBOXAI
|
|
7
|
+
from webscout import PERPLEXITY
|
|
8
|
+
from webscout import ThinkAnyAI
|
|
9
|
+
from webscout import YouChat
|
|
10
|
+
from webscout import YEPCHAT
|
|
11
|
+
from webscout.AIbase import Provider, AsyncProvider
|
|
12
|
+
from webscout import KOBOLDAI, AsyncKOBOLDAI
|
|
13
|
+
from webscout import PhindSearch, AsyncPhindSearch
|
|
14
|
+
from webscout import LLAMA2, AsyncLLAMA2
|
|
15
|
+
from webscout import BLACKBOXAI, AsyncBLACKBOXAI
|
|
16
|
+
from webscout import PERPLEXITY
|
|
17
|
+
from webscout import ThinkAnyAI
|
|
18
|
+
from webscout import YouChat
|
|
19
|
+
from webscout import YEPCHAT, AsyncYEPCHAT
|
|
20
|
+
from webscout import LEO, AsyncLEO
|
|
21
|
+
from webscout import GROQ, AsyncGROQ
|
|
22
|
+
from webscout import OPENAI, AsyncOPENAI
|
|
23
|
+
from webscout import REKA
|
|
24
|
+
from webscout import Xjai
|
|
25
|
+
from webscout import Berlin4h
|
|
26
|
+
from webscout import ChatGPTUK
|
|
11
27
|
from webscout.g4f import GPT4FREE, AsyncGPT4FREE
|
|
12
28
|
from webscout.g4f import TestProviders
|
|
13
29
|
from webscout.exceptions import AllProvidersFailure
|
|
@@ -20,7 +36,26 @@ import logging
|
|
|
20
36
|
|
|
21
37
|
|
|
22
38
|
provider_map: dict[
|
|
23
|
-
str, Union[
|
|
39
|
+
str, Union[ ThinkAnyAI,
|
|
40
|
+
Xjai,
|
|
41
|
+
LLAMA2,
|
|
42
|
+
AsyncLLAMA2,
|
|
43
|
+
LEO,
|
|
44
|
+
AsyncLEO,
|
|
45
|
+
KOBOLDAI,
|
|
46
|
+
AsyncKOBOLDAI,
|
|
47
|
+
OPENGPT,
|
|
48
|
+
AsyncOPENGPT,
|
|
49
|
+
PERPLEXITY,
|
|
50
|
+
BLACKBOXAI,
|
|
51
|
+
AsyncBLACKBOXAI,
|
|
52
|
+
PhindSearch,
|
|
53
|
+
AsyncPhindSearch,
|
|
54
|
+
YEPCHAT,
|
|
55
|
+
AsyncYEPCHAT,
|
|
56
|
+
YouChat,
|
|
57
|
+
Berlin4h,
|
|
58
|
+
ChatGPTUK,]
|
|
24
59
|
] = {
|
|
25
60
|
"PhindSearch": PhindSearch,
|
|
26
61
|
"perplexity": PERPLEXITY,
|
|
@@ -32,6 +67,12 @@ provider_map: dict[
|
|
|
32
67
|
"thinkany": ThinkAnyAI,
|
|
33
68
|
"yepchat": YEPCHAT,
|
|
34
69
|
"you": YouChat,
|
|
70
|
+
"leo": LEO,
|
|
71
|
+
"xjai": Xjai,
|
|
72
|
+
"berlin4h": Berlin4h,
|
|
73
|
+
"chatgptuk": ChatGPTUK,
|
|
74
|
+
"gpt4free": GPT4FREE,
|
|
75
|
+
|
|
35
76
|
}
|
|
36
77
|
|
|
37
78
|
|
|
@@ -113,13 +154,13 @@ class AUTO(Provider):
|
|
|
113
154
|
"conversationally": conversationally,
|
|
114
155
|
}
|
|
115
156
|
|
|
116
|
-
#
|
|
157
|
+
# webscout-based providers
|
|
117
158
|
for provider_name, provider_obj in provider_map.items():
|
|
118
159
|
# continue
|
|
119
160
|
if provider_name in self.exclude:
|
|
120
161
|
continue
|
|
121
162
|
try:
|
|
122
|
-
self.provider_name = f"
|
|
163
|
+
self.provider_name = f"webscout-{provider_name}"
|
|
123
164
|
self.provider = provider_obj(
|
|
124
165
|
is_conversation=self.is_conversation,
|
|
125
166
|
max_tokens=self.max_tokens,
|
webscout/__init__.py
CHANGED
|
@@ -1,117 +1,120 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Search for anything using the Google, DuckDuckGo, phind.com. Also containes AI models, can transcribe yt videos, temporary email and phone number generation, have TTS support and webai(terminal gpt and open interpeter)
|
|
4
|
-
"""
|
|
5
|
-
# webscout/__init__.py
|
|
6
|
-
|
|
7
|
-
from .webscout_search import WEBS
|
|
8
|
-
from .webscout_search_async import AsyncWEBS
|
|
1
|
+
from .webscout_search import WEBS
|
|
2
|
+
from .webscout_search_async import AsyncWEBS
|
|
9
3
|
from .version import __version__
|
|
10
|
-
from .DWEBS import DeepWEBS
|
|
4
|
+
from .DWEBS import DeepWEBS
|
|
11
5
|
from .transcriber import transcriber
|
|
12
6
|
from .voice import play_audio
|
|
7
|
+
from .tempid import Client as TempMailClient, TemporaryPhoneNumber
|
|
8
|
+
from .LLM import LLM
|
|
9
|
+
# Import Localai models and utilities directly
|
|
10
|
+
from .Localai import *
|
|
13
11
|
import g4f
|
|
14
12
|
# Import provider classes for direct access
|
|
15
13
|
from .Provider import (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
14
|
+
ThinkAnyAI,
|
|
15
|
+
Xjai,
|
|
16
|
+
LLAMA2,
|
|
17
|
+
AsyncLLAMA2,
|
|
18
|
+
Cohere,
|
|
19
|
+
REKA,
|
|
20
|
+
GROQ,
|
|
21
|
+
AsyncGROQ,
|
|
22
|
+
OPENAI,
|
|
23
|
+
AsyncOPENAI,
|
|
24
|
+
LEO,
|
|
25
|
+
AsyncLEO,
|
|
26
|
+
KOBOLDAI,
|
|
27
|
+
AsyncKOBOLDAI,
|
|
28
|
+
OPENGPT,
|
|
29
|
+
AsyncOPENGPT,
|
|
30
|
+
PERPLEXITY,
|
|
31
|
+
BLACKBOXAI,
|
|
32
|
+
AsyncBLACKBOXAI,
|
|
33
|
+
PhindSearch,
|
|
34
|
+
AsyncPhindSearch,
|
|
35
|
+
YEPCHAT,
|
|
36
|
+
AsyncYEPCHAT,
|
|
37
|
+
YouChat,
|
|
38
|
+
GEMINI,
|
|
39
|
+
Berlin4h,
|
|
40
|
+
ChatGPTUK,
|
|
43
41
|
)
|
|
44
42
|
|
|
45
43
|
__repo__ = "https://github.com/OE-LUCIFER/Webscout"
|
|
46
44
|
|
|
47
45
|
webai = [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
46
|
+
"leo",
|
|
47
|
+
"openai",
|
|
48
|
+
"opengpt",
|
|
49
|
+
"koboldai",
|
|
50
|
+
"gemini",
|
|
51
|
+
"phind",
|
|
52
|
+
"blackboxai",
|
|
53
|
+
"g4fauto",
|
|
54
|
+
"perplexity",
|
|
55
|
+
"groq",
|
|
56
|
+
"reka",
|
|
57
|
+
"cohere",
|
|
58
|
+
"yepchat",
|
|
59
|
+
"you",
|
|
60
|
+
"xjai",
|
|
61
|
+
"thinkany",
|
|
62
|
+
"berlin4h",
|
|
63
|
+
"chatgptuk",
|
|
64
|
+
"auto",
|
|
67
65
|
]
|
|
68
66
|
|
|
69
67
|
gpt4free_providers = [
|
|
70
|
-
|
|
68
|
+
provider.__name__ for provider in g4f.Provider.__providers__ # if provider.working
|
|
71
69
|
]
|
|
72
70
|
|
|
73
71
|
available_providers = webai + gpt4free_providers
|
|
74
72
|
|
|
75
|
-
# Add all the provider classes
|
|
73
|
+
# Add all the provider classes, Localai models, Thread, and Model to __all__
|
|
76
74
|
__all__ = [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
"WEBS",
|
|
76
|
+
"AsyncWEBS",
|
|
77
|
+
"__version__",
|
|
78
|
+
"DeepWEBS",
|
|
79
|
+
"transcriber",
|
|
80
|
+
"play_audio",
|
|
81
|
+
"TempMailClient",
|
|
82
|
+
"TemporaryPhoneNumber",
|
|
83
|
+
"LLM",
|
|
84
|
+
# Localai models and utilities
|
|
85
|
+
"Model",
|
|
86
|
+
"Thread",
|
|
87
|
+
"formats",
|
|
84
88
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
89
|
+
# AI Providers
|
|
90
|
+
"ThinkAnyAI",
|
|
91
|
+
"Xjai",
|
|
92
|
+
"LLAMA2",
|
|
93
|
+
"AsyncLLAMA2",
|
|
94
|
+
"Cohere",
|
|
95
|
+
"REKA",
|
|
96
|
+
"GROQ",
|
|
97
|
+
"AsyncGROQ",
|
|
98
|
+
"OPENAI",
|
|
99
|
+
"AsyncOPENAI",
|
|
100
|
+
"LEO",
|
|
101
|
+
"AsyncLEO",
|
|
102
|
+
"KOBOLDAI",
|
|
103
|
+
"AsyncKOBOLDAI",
|
|
104
|
+
"OPENGPT",
|
|
105
|
+
"AsyncOPENGPT",
|
|
106
|
+
"PERPLEXITY",
|
|
107
|
+
"BLACKBOXAI",
|
|
108
|
+
"AsyncBLACKBOXAI",
|
|
109
|
+
"PhindSearch",
|
|
110
|
+
"AsyncPhindSearch",
|
|
111
|
+
"YEPCHAT",
|
|
112
|
+
"AsyncYEPCHAT",
|
|
113
|
+
"YouChat",
|
|
114
|
+
"GEMINI",
|
|
115
|
+
"Berlin4h",
|
|
116
|
+
"ChatGPTUK",
|
|
113
117
|
]
|
|
114
118
|
|
|
115
|
-
# Set up basic logger
|
|
116
119
|
import logging
|
|
117
|
-
logging.getLogger("webscout").addHandler(logging.NullHandler())
|
|
120
|
+
logging.getLogger("webscout").addHandler(logging.NullHandler())
|
webscout/async_providers.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
from webscout
|
|
2
|
-
from webscout
|
|
3
|
-
from webscout
|
|
4
|
-
from webscout
|
|
5
|
-
from webscout
|
|
6
|
-
from webscout
|
|
7
|
-
from webscout
|
|
8
|
-
from webscout
|
|
9
|
-
from webscout
|
|
1
|
+
from webscout import AsyncPhindSearch
|
|
2
|
+
from webscout import AsyncYEPCHAT
|
|
3
|
+
from webscout import AsyncOPENGPT
|
|
4
|
+
from webscout import AsyncOPENAI
|
|
5
|
+
from webscout import AsyncLLAMA2
|
|
6
|
+
from webscout import AsyncLEO
|
|
7
|
+
from webscout import AsyncKOBOLDAI
|
|
8
|
+
from webscout import AsyncGROQ
|
|
9
|
+
from webscout import AsyncBLACKBOXAI
|
|
10
10
|
from webscout.g4f import AsyncGPT4FREE
|
|
11
11
|
|
|
12
12
|
mapper: dict[str, object] = {
|
webscout/g4f.py
CHANGED
|
@@ -227,8 +227,8 @@ class GPT4FREE(Provider):
|
|
|
227
227
|
auth: str = None,
|
|
228
228
|
max_tokens: int = 600,
|
|
229
229
|
model: str = None,
|
|
230
|
-
chat_completion: bool =
|
|
231
|
-
ignore_working: bool =
|
|
230
|
+
chat_completion: bool = True,
|
|
231
|
+
ignore_working: bool = True,
|
|
232
232
|
timeout: int = 30,
|
|
233
233
|
intro: str = None,
|
|
234
234
|
filepath: str = None,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: webscout
|
|
3
|
-
Version: 2.
|
|
4
|
-
Summary: Search for anything using
|
|
3
|
+
Version: 2.3b0
|
|
4
|
+
Summary: Search for anything using Google, DuckDuckGo, phind.com. Also contains AI models, can transcribe yt videos, temporary email and phone number generation, has TTS support, and webai (terminal gpt and open interpreter).
|
|
5
5
|
Author: OEvortex
|
|
6
6
|
Author-email: helpingai5@gmail.com
|
|
7
7
|
License: HelpingAI Simplified Universal License
|
|
@@ -36,7 +36,6 @@ Requires-Dist: halo >=0.0.31
|
|
|
36
36
|
Requires-Dist: g4f >=0.2.2.3
|
|
37
37
|
Requires-Dist: rich
|
|
38
38
|
Requires-Dist: python-dotenv
|
|
39
|
-
Requires-Dist: Helpingai-T2
|
|
40
39
|
Requires-Dist: beautifulsoup4
|
|
41
40
|
Requires-Dist: markdownify
|
|
42
41
|
Requires-Dist: pydantic
|
|
@@ -55,6 +54,10 @@ Requires-Dist: playsound
|
|
|
55
54
|
Provides-Extra: dev
|
|
56
55
|
Requires-Dist: ruff >=0.1.6 ; extra == 'dev'
|
|
57
56
|
Requires-Dist: pytest >=7.4.2 ; extra == 'dev'
|
|
57
|
+
Provides-Extra: local
|
|
58
|
+
Requires-Dist: llama-cpp-python ; extra == 'local'
|
|
59
|
+
Requires-Dist: colorama ; extra == 'local'
|
|
60
|
+
Requires-Dist: numpy ; extra == 'local'
|
|
58
61
|
|
|
59
62
|
<div align="center">
|
|
60
63
|
<!-- Replace `#` with your actual links -->
|
|
@@ -10,17 +10,17 @@ DeepWEBS/networks/webpage_fetcher.py,sha256=vRB9T3o-nMgrMkG2NPHTDctNeXaPSKCmBXqu
|
|
|
10
10
|
DeepWEBS/utilsdw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
DeepWEBS/utilsdw/enver.py,sha256=vpI7s4_o_VL9govSryOv-z1zYK3pTEW3-H9QNN8JYtc,2472
|
|
12
12
|
DeepWEBS/utilsdw/logger.py,sha256=Z0nFUcEGyU8r28yKiIyvEtO26xxpmJgbvNToTfwZecc,8174
|
|
13
|
-
webscout/AIauto.py,sha256=
|
|
13
|
+
webscout/AIauto.py,sha256=xPGr_Z0h27XXNh4Wiufjn9TksDOqxqlaGcLUYKNP55w,18246
|
|
14
14
|
webscout/AIbase.py,sha256=GoHbN8r0gq2saYRZv6LA-Fr9Jlcjv80STKFXUq2ZeGU,4710
|
|
15
15
|
webscout/AIutel.py,sha256=LXYgQOEk21c7MpNJlSl2RbLvR8HDJhTSwJiVVgqf0Iw,33266
|
|
16
16
|
webscout/DWEBS.py,sha256=QT-7-dUgWhQ_H7EVZD53AVyXxyskoPMKCkFIpzkN56Q,7332
|
|
17
17
|
webscout/LLM.py,sha256=CiDz0okZNEoXuxMwadZnwRGSLpqk2zg0vzvXSxQZjcE,1910
|
|
18
|
-
webscout/__init__.py,sha256=
|
|
18
|
+
webscout/__init__.py,sha256=5aQ5fErmNGBxEVEHIOOwPrwQTW7WkWeAuONrUcD6chM,2256
|
|
19
19
|
webscout/__main__.py,sha256=ZtTRgsRjUi2JOvYFLF1ZCh55Sdoz94I-BS-TlJC7WDU,126
|
|
20
|
-
webscout/async_providers.py,sha256=
|
|
20
|
+
webscout/async_providers.py,sha256=holBv5SxanxVXc_92CBBaXHlB2IakB_fHnhyZaFjYF8,684
|
|
21
21
|
webscout/cli.py,sha256=F888fdrFUQgczMBN4yMOSf6Nh-IbvkqpPhDsbnA2FtQ,17059
|
|
22
22
|
webscout/exceptions.py,sha256=Wx8bEN3bz1nNZ9PAZHX8jwvFPddF9Y2pHAEwCMu_VJc,498
|
|
23
|
-
webscout/g4f.py,sha256=
|
|
23
|
+
webscout/g4f.py,sha256=NNcnlOtIWV9R93UsBN4jBGBEJ9sJ-Np1WbgjkGVDcYc,24487
|
|
24
24
|
webscout/models.py,sha256=5iQIdtedT18YuTZ3npoG7kLMwcrKwhQ7928dl_7qZW0,692
|
|
25
25
|
webscout/tempid.py,sha256=5oc3UbXhPGKxrMRTfRABT-V-dNzH_hOKWtLYM6iCWd4,5896
|
|
26
26
|
webscout/transcriber.py,sha256=EddvTSq7dPJ42V3pQVnGuEiYQ7WjJ9uyeR9kMSxN7uY,20622
|
|
@@ -49,9 +49,9 @@ webscout/Provider/Xjai.py,sha256=gI9FqEodS-jHfFM_CsDPmTb_wL5NU2q__2fg9hqVoEc,880
|
|
|
49
49
|
webscout/Provider/Yepchat.py,sha256=E0tv3Zfoqs1Sw8Pe-6_5d--_1LESm8mjw536DWclJk8,19398
|
|
50
50
|
webscout/Provider/Youchat.py,sha256=JAZYwcj0Kl1UUgqN0rD3TKaReA1G-cmIlW_4mog1j_c,7756
|
|
51
51
|
webscout/Provider/__init__.py,sha256=BPYm-ZOkZOXXn3bx_2UHIV6aZS47d9Y01JDq-EiPXhQ,1318
|
|
52
|
-
webscout-2.
|
|
53
|
-
webscout-2.
|
|
54
|
-
webscout-2.
|
|
55
|
-
webscout-2.
|
|
56
|
-
webscout-2.
|
|
57
|
-
webscout-2.
|
|
52
|
+
webscout-2.3b0.dist-info/LICENSE.md,sha256=mRVwJuT4SXC5O93BFdsfWBjlXjGn2Np90Zm5SocUzM0,3150
|
|
53
|
+
webscout-2.3b0.dist-info/METADATA,sha256=zoMdQSal-00dvxDW4NC2v8UWXE8YvB9jMqzDFberLNo,46613
|
|
54
|
+
webscout-2.3b0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
55
|
+
webscout-2.3b0.dist-info/entry_points.txt,sha256=Hh4YIIjvkqB9SVxZ2ri4DZUkgEu_WF_5_r_nZDIvfG8,73
|
|
56
|
+
webscout-2.3b0.dist-info/top_level.txt,sha256=OD5YKy6Y3hldL7SmuxsiEDxAG4LgdSSWwzYk22MF9fk,18
|
|
57
|
+
webscout-2.3b0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|