webscout 1.4.6__py3-none-any.whl → 2.1__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.

@@ -0,0 +1,57 @@
1
+ # webscout/providers/__init__.py
2
+
3
+ from .ThinkAnyAI import ThinkAnyAI
4
+ from .Xjai import Xjai
5
+ from .Llama2 import LLAMA2
6
+ from .Llama2 import AsyncLLAMA2
7
+ from .Cohere import Cohere
8
+ from .Reka import REKA
9
+ from .Groq import GROQ
10
+ from .Groq import AsyncGROQ
11
+ from .Openai import OPENAI
12
+ from .Openai import AsyncOPENAI
13
+ from .Leo import LEO
14
+ from .Leo import AsyncLEO
15
+ from .Koboldai import KOBOLDAI
16
+ from .Koboldai import AsyncKOBOLDAI
17
+ from .OpenGPT import OPENGPT
18
+ from .OpenGPT import AsyncOPENGPT
19
+ from .Perplexity import PERPLEXITY
20
+ from .Blackboxai import BLACKBOXAI
21
+ from .Blackboxai import AsyncBLACKBOXAI
22
+ from .Phind import PhindSearch
23
+ from .Phind import AsyncPhindSearch
24
+ from .Yepchat import YEPCHAT
25
+ from .Yepchat import AsyncYEPCHAT
26
+ from .Youchat import YouChat
27
+ from .Gemini import GEMINI
28
+
29
+
30
+ __all__ = [
31
+ 'ThinkAnyAI',
32
+ 'Xjai',
33
+ 'LLAMA2',
34
+ 'AsyncLLAMA2',
35
+ 'Cohere',
36
+ 'REKA',
37
+ 'GROQ',
38
+ 'AsyncGROQ',
39
+ 'OPENAI',
40
+ 'AsyncOPENAI',
41
+ 'LEO',
42
+ 'AsyncLEO',
43
+ 'KOBOLDAI',
44
+ 'AsyncKOBOLDAI',
45
+ 'OPENGPT',
46
+ 'AsyncOPENGPT',
47
+ 'PERPLEXITY',
48
+ 'BLACKBOXAI',
49
+ 'AsyncBLACKBOXAI',
50
+ 'PhindSearch',
51
+ 'AsyncPhindSearch',
52
+ 'YEPCHAT',
53
+ 'AsyncYEPCHAT',
54
+ 'YouChat',
55
+ 'GEMINI',
56
+
57
+ ]
webscout/__init__.py CHANGED
@@ -2,14 +2,44 @@
2
2
 
3
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
4
  """
5
- import g4f
6
- import logging
7
- from .webscout_search import WEBS
8
- from .webscout_search_async import AsyncWEBS
5
+ # webscout/__init__.py
6
+
7
+ from .webscout_search import WEBS
8
+ from .webscout_search_async import AsyncWEBS
9
9
  from .version import __version__
10
- from .DWEBS import DeepWEBS
10
+ from .DWEBS import DeepWEBS
11
11
  from .transcriber import transcriber
12
12
  from .voice import play_audio
13
+ import g4f
14
+ # Import provider classes for direct access
15
+ from .Provider import (
16
+ ThinkAnyAI,
17
+ Xjai,
18
+ LLAMA2,
19
+ AsyncLLAMA2,
20
+ Cohere,
21
+ REKA,
22
+ GROQ,
23
+ AsyncGROQ,
24
+ OPENAI,
25
+ AsyncOPENAI,
26
+ LEO,
27
+ AsyncLEO,
28
+ KOBOLDAI,
29
+ AsyncKOBOLDAI,
30
+ OPENGPT,
31
+ AsyncOPENGPT,
32
+ PERPLEXITY,
33
+ BLACKBOXAI,
34
+ AsyncBLACKBOXAI,
35
+ PhindSearch,
36
+ AsyncPhindSearch,
37
+ YEPCHAT,
38
+ AsyncYEPCHAT,
39
+ YouChat,
40
+ GEMINI,
41
+
42
+ )
13
43
 
14
44
  __repo__ = "https://github.com/OE-LUCIFER/Webscout"
15
45
 
@@ -30,8 +60,8 @@ webai = [
30
60
  "you",
31
61
  "xjai",
32
62
  "thinkany",
63
+ # "chatgptlogin",
33
64
  "auto",
34
-
35
65
  ]
36
66
 
37
67
  gpt4free_providers = [
@@ -40,6 +70,45 @@ gpt4free_providers = [
40
70
 
41
71
  available_providers = webai + gpt4free_providers
42
72
 
43
- __all__ = ["WEBS", "AsyncWEBS", "__version__", "cli"]
73
+ # Add all the provider classes you want to directly import to __all__
74
+ __all__ = [
75
+ "WEBS",
76
+ "AsyncWEBS",
77
+ "__version__",
78
+ "cli",
79
+ "DeepWEBS",
80
+ "transcriber",
81
+ "play_audio",
82
+
83
+ # AI Providers
84
+ "ThinkAnyAI",
85
+ "Xjai",
86
+ "LLAMA2",
87
+ "AsyncLLAMA2",
88
+ "Cohere",
89
+ "REKA",
90
+ "GROQ",
91
+ "AsyncGROQ",
92
+ "OPENAI",
93
+ "AsyncOPENAI",
94
+ "LEO",
95
+ "AsyncLEO",
96
+ "KOBOLDAI",
97
+ "AsyncKOBOLDAI",
98
+ "OPENGPT",
99
+ "AsyncOPENGPT",
100
+ "PERPLEXITY",
101
+ "BLACKBOXAI",
102
+ "AsyncBLACKBOXAI",
103
+ "PhindSearch",
104
+ "AsyncPhindSearch",
105
+ "YEPCHAT",
106
+ "AsyncYEPCHAT",
107
+ "YouChat",
108
+ "GEMINI",
44
109
 
45
- logging.getLogger("webscout").addHandler(logging.NullHandler())
110
+ ]
111
+
112
+ # Set up basic logger
113
+ import logging
114
+ logging.getLogger("webscout").addHandler(logging.NullHandler())
webscout/version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "1.4.5"
1
+ __version__ = "2.0"
2
2
 
webscout/webai.py CHANGED
@@ -25,16 +25,17 @@ from rich.table import Table
25
25
  from rich.prompt import Prompt
26
26
  from rich.progress import Progress
27
27
  from typing import Iterator
28
- from webscout.AIutel import Optimizers
29
- from webscout.AIutel import default_path
30
- from webscout.AIutel import AwesomePrompts
31
- from webscout.AIutel import RawDog
32
- from webscout.AIutel import Audio
28
+ from .AIutel import Optimizers
29
+ from .AIutel import default_path
30
+ from .AIutel import AwesomePrompts
31
+ from .AIutel import RawDog
32
+ from .AIutel import Audio
33
33
  from webscout import available_providers
34
34
  from colorama import Fore
35
35
  from colorama import init as init_colorama
36
36
  from dotenv import load_dotenv
37
37
  import g4f
38
+ import webscout
38
39
  import webscout.AIutel
39
40
 
40
41
  init_colorama(autoreset=True)
@@ -414,7 +415,7 @@ class Main(cmd.Cmd):
414
415
  )
415
416
 
416
417
  elif provider == "leo":
417
- from webscout.AI import LEO
418
+ from webscout import LEO
418
419
 
419
420
  self.bot = LEO(
420
421
  is_conversation=disable_conversation,
@@ -437,7 +438,7 @@ class Main(cmd.Cmd):
437
438
  assert auth, (
438
439
  "OpenAI's API-key is required. " "Use the flag `--key` or `-k`"
439
440
  )
440
- from webscout.AI import OPENAI
441
+ from webscout import OPENAI
441
442
 
442
443
  self.bot = OPENAI(
443
444
  api_key=auth,
@@ -457,7 +458,7 @@ class Main(cmd.Cmd):
457
458
  act=awesome_prompt,
458
459
  )
459
460
  if provider == "auto":
460
- from webscout.AIauto import AUTO
461
+ from webscout import AUTO
461
462
 
462
463
  self.bot = AUTO(
463
464
  is_conversation=disable_conversation,
@@ -471,7 +472,7 @@ class Main(cmd.Cmd):
471
472
  act=awesome_prompt,
472
473
  )
473
474
  elif provider == "opengpt":
474
- from webscout.AI import OPENGPT
475
+ from webscout import OPENGPT
475
476
 
476
477
  self.bot = OPENGPT(
477
478
  is_conversation=disable_conversation,
@@ -486,7 +487,7 @@ class Main(cmd.Cmd):
486
487
  assistant_id="bca37014-6f97-4f2b-8928-81ea8d478d88"
487
488
  )
488
489
  elif provider == "thinkany":
489
- from webscout.AI import ThinkAnyAI
490
+ from webscout import ThinkAnyAI
490
491
 
491
492
  self.bot = ThinkAnyAI(
492
493
  is_conversation=disable_conversation,
@@ -499,8 +500,22 @@ class Main(cmd.Cmd):
499
500
  history_offset=history_offset,
500
501
  act=awesome_prompt,
501
502
  )
503
+ # elif provider == "chatgptlogin":
504
+ # from webscout import ChatGPTlogin
505
+
506
+ # self.bot = ChatGPTlogin(
507
+ # is_conversation=disable_conversation,
508
+ # max_tokens=max_tokens,
509
+ # timeout=timeout,
510
+ # intro=intro,
511
+ # filepath=filepath,
512
+ # update_file=update_file,
513
+ # proxies=proxies,
514
+ # history_offset=history_offset,
515
+ # act=awesome_prompt,
516
+ # )
502
517
  elif provider == "yepchat":
503
- from webscout.AI import YEPCHAT
518
+ from webscout import YEPCHAT
504
519
 
505
520
  self.bot = YEPCHAT(
506
521
  is_conversation=disable_conversation,
@@ -522,7 +537,7 @@ class Main(cmd.Cmd):
522
537
  assert auth, (
523
538
  "GROQ's API-key is required. " "Use the flag `--key` or `-k`"
524
539
  )
525
- from webscout.AI import GROQ
540
+ from webscout import GROQ
526
541
 
527
542
 
528
543
  self.bot = GROQ(
@@ -546,7 +561,7 @@ class Main(cmd.Cmd):
546
561
  assert auth, (
547
562
  "Cohere's API-key is required. Use the flag `--key` or `-k`"
548
563
  )
549
- from webscout.AI import Cohere
564
+ from webscout import Cohere
550
565
  self.bot = Cohere(
551
566
  api_key=auth,
552
567
  is_conversation=disable_conversation,
@@ -564,7 +579,7 @@ class Main(cmd.Cmd):
564
579
  act=awesome_prompt,
565
580
  )
566
581
  elif provider == "reka":
567
- from webscout.AI import REKA
582
+ from webscout import REKA
568
583
 
569
584
  self.bot = REKA(
570
585
  api_key=auth,
@@ -582,7 +597,7 @@ class Main(cmd.Cmd):
582
597
  )
583
598
 
584
599
  elif provider == "koboldai":
585
- from webscout.AI import KOBOLDAI
600
+ from webscout import KOBOLDAI
586
601
 
587
602
  self.bot = KOBOLDAI(
588
603
  is_conversation=disable_conversation,
@@ -598,7 +613,7 @@ class Main(cmd.Cmd):
598
613
  act=awesome_prompt,
599
614
  )
600
615
  elif provider == "xjai":
601
- from webscout.AI import Xjai
616
+ from webscout import Xjai
602
617
 
603
618
  self.bot = Xjai(
604
619
  is_conversation=disable_conversation,
@@ -615,7 +630,7 @@ class Main(cmd.Cmd):
615
630
  )
616
631
 
617
632
  elif provider == "gemini":
618
- from webscout.AI import GEMINI
633
+ from webscout import GEMINI
619
634
 
620
635
  assert auth, (
621
636
  "Path to gemini.google.com.cookies.json file is required. "
@@ -628,7 +643,7 @@ class Main(cmd.Cmd):
628
643
  )
629
644
 
630
645
  elif provider == "phind":
631
- from webscout.AI import PhindSearch
646
+ from webscout import PhindSearch
632
647
 
633
648
  self.bot = PhindSearch(
634
649
  is_conversation=disable_conversation,
@@ -646,7 +661,7 @@ class Main(cmd.Cmd):
646
661
 
647
662
  elif provider == "blackboxai":
648
663
 
649
- from webscout.AI import BLACKBOXAI
664
+ from webscout import BLACKBOXAI
650
665
 
651
666
  self.bot = BLACKBOXAI(
652
667
  is_conversation=disable_conversation,
@@ -661,7 +676,7 @@ class Main(cmd.Cmd):
661
676
  )
662
677
  elif provider == "you":
663
678
 
664
- from webscout.AI import YouChat
679
+ from webscout import YouChat
665
680
 
666
681
  self.bot = YouChat(
667
682
  is_conversation=disable_conversation,
@@ -697,7 +712,7 @@ class Main(cmd.Cmd):
697
712
 
698
713
 
699
714
  elif provider == "perplexity":
700
- from webscout.AI import PERPLEXITY
715
+ from webscout import PERPLEXITY
701
716
 
702
717
  self.bot = PERPLEXITY(
703
718
  is_conversation=disable_conversation,