webscout 6.5__py3-none-any.whl → 6.7__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/Extra/autocoder/autocoder_utiles.py +119 -101
- webscout/Extra/weather.py +5 -5
- webscout/Provider/AISEARCH/__init__.py +2 -0
- webscout/Provider/AISEARCH/ooai.py +155 -0
- webscout/Provider/Amigo.py +70 -85
- webscout/Provider/{prefind.py → Jadve.py} +72 -70
- webscout/Provider/Netwrck.py +239 -0
- webscout/Provider/Openai.py +4 -3
- webscout/Provider/PI.py +2 -2
- webscout/Provider/PizzaGPT.py +3 -3
- webscout/Provider/TeachAnything.py +15 -2
- webscout/Provider/Youchat.py +42 -8
- webscout/Provider/__init__.py +134 -147
- webscout/Provider/meta.py +1 -1
- webscout/Provider/multichat.py +230 -0
- webscout/Provider/promptrefine.py +2 -2
- webscout/Provider/talkai.py +10 -13
- webscout/Provider/turboseek.py +5 -4
- webscout/Provider/tutorai.py +8 -112
- webscout/Provider/typegpt.py +4 -5
- webscout/Provider/x0gpt.py +81 -9
- webscout/Provider/yep.py +123 -361
- webscout/__init__.py +10 -1
- webscout/cli.py +31 -39
- webscout/conversation.py +24 -9
- webscout/exceptions.py +188 -20
- webscout/litprinter/__init__.py +19 -123
- webscout/litprinter/colors.py +54 -0
- webscout/optimizers.py +335 -185
- webscout/scout/__init__.py +2 -5
- webscout/scout/core/__init__.py +7 -0
- webscout/scout/core/crawler.py +140 -0
- webscout/scout/core/scout.py +571 -0
- webscout/scout/core/search_result.py +96 -0
- webscout/scout/core/text_analyzer.py +63 -0
- webscout/scout/core/text_utils.py +277 -0
- webscout/scout/core/web_analyzer.py +52 -0
- webscout/scout/element.py +6 -5
- webscout/update_checker.py +117 -58
- webscout/version.py +1 -1
- webscout/webscout_search.py +1 -1
- webscout/zeroart/base.py +15 -16
- webscout/zeroart/effects.py +1 -1
- webscout/zeroart/fonts.py +1 -1
- {webscout-6.5.dist-info → webscout-6.7.dist-info}/METADATA +9 -172
- {webscout-6.5.dist-info → webscout-6.7.dist-info}/RECORD +63 -45
- {webscout-6.5.dist-info → webscout-6.7.dist-info}/entry_points.txt +1 -1
- webscout-6.7.dist-info/top_level.txt +2 -0
- webstoken/__init__.py +30 -0
- webstoken/classifier.py +189 -0
- webstoken/keywords.py +216 -0
- webstoken/language.py +128 -0
- webstoken/ner.py +164 -0
- webstoken/normalizer.py +35 -0
- webstoken/processor.py +77 -0
- webstoken/sentiment.py +206 -0
- webstoken/stemmer.py +73 -0
- webstoken/t.py +75 -0
- webstoken/tagger.py +60 -0
- webstoken/tokenizer.py +158 -0
- webscout/Provider/Perplexity.py +0 -591
- webscout/Provider/RoboCoders.py +0 -206
- webscout/Provider/genspark.py +0 -225
- webscout/Provider/perplexitylabs.py +0 -265
- webscout/Provider/twitterclone.py +0 -251
- webscout/Provider/upstage.py +0 -230
- webscout-6.5.dist-info/top_level.txt +0 -1
- /webscout/Provider/{felo_search.py → AISEARCH/felo_search.py} +0 -0
- {webscout-6.5.dist-info → webscout-6.7.dist-info}/LICENSE.md +0 -0
- {webscout-6.5.dist-info → webscout-6.7.dist-info}/WHEEL +0 -0
webscout/litprinter/__init__.py
CHANGED
|
@@ -68,81 +68,41 @@ import textwrap
|
|
|
68
68
|
from collections import defaultdict
|
|
69
69
|
import shutil
|
|
70
70
|
import inspect
|
|
71
|
+
from .colors import Colors
|
|
72
|
+
import ctypes
|
|
73
|
+
|
|
74
|
+
# Checking Pygments availability
|
|
71
75
|
try:
|
|
72
76
|
from pygments import highlight
|
|
73
77
|
from pygments.lexers import get_lexer_by_name
|
|
74
78
|
from pygments.formatters import Terminal256Formatter
|
|
79
|
+
|
|
75
80
|
PYGMENTS_AVAILABLE = True
|
|
76
81
|
except ImportError:
|
|
77
82
|
PYGMENTS_AVAILABLE = False
|
|
78
83
|
|
|
79
|
-
#
|
|
84
|
+
# Enabling UTF-8 output on Windows
|
|
80
85
|
if sys.platform == 'win32':
|
|
81
86
|
import ctypes
|
|
87
|
+
|
|
82
88
|
kernel32 = ctypes.windll.kernel32
|
|
83
89
|
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)
|
|
84
|
-
sys.stdout.reconfigure(encoding='utf-8')
|
|
85
90
|
|
|
86
|
-
#
|
|
91
|
+
# Checking and overriding sys.stdout
|
|
92
|
+
try:
|
|
93
|
+
if sys.stdout is not None:
|
|
94
|
+
sys.stdout.reconfigure(encoding='utf-8')
|
|
95
|
+
else:
|
|
96
|
+
print("sys.stdout is not available.")
|
|
97
|
+
except AttributeError:
|
|
98
|
+
print("Failed to redefine sys.stdout.")
|
|
99
|
+
|
|
100
|
+
# Enabling ANSI escape sequences for Windows
|
|
87
101
|
if os.name == 'nt':
|
|
88
|
-
import ctypes
|
|
89
102
|
kernel32 = ctypes.windll.kernel32
|
|
90
103
|
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)
|
|
91
104
|
|
|
92
|
-
#
|
|
93
|
-
class Colors:
|
|
94
|
-
"""ANSI color codes for terminal output."""
|
|
95
|
-
# Base colors
|
|
96
|
-
BLACK = '\033[30m'
|
|
97
|
-
RED = '\033[31m'
|
|
98
|
-
GREEN = '\033[32m'
|
|
99
|
-
YELLOW = '\033[33m'
|
|
100
|
-
BLUE = '\033[34m'
|
|
101
|
-
MAGENTA = '\033[35m'
|
|
102
|
-
CYAN = '\033[36m'
|
|
103
|
-
WHITE = '\033[37m'
|
|
104
|
-
GRAY = '\033[90m'
|
|
105
|
-
|
|
106
|
-
# Bright colors
|
|
107
|
-
BRIGHT_BLACK = '\033[90m'
|
|
108
|
-
BRIGHT_RED = '\033[91m'
|
|
109
|
-
BRIGHT_GREEN = '\033[92m'
|
|
110
|
-
BRIGHT_YELLOW = '\033[93m'
|
|
111
|
-
BRIGHT_BLUE = '\033[94m'
|
|
112
|
-
BRIGHT_MAGENTA = '\033[95m'
|
|
113
|
-
BRIGHT_CYAN = '\033[96m'
|
|
114
|
-
BRIGHT_WHITE = '\033[97m'
|
|
115
|
-
|
|
116
|
-
# Background colors
|
|
117
|
-
BG_BLACK = '\033[40m'
|
|
118
|
-
BG_RED = '\033[41m'
|
|
119
|
-
BG_GREEN = '\033[42m'
|
|
120
|
-
BG_YELLOW = '\033[43m'
|
|
121
|
-
BG_BLUE = '\033[44m'
|
|
122
|
-
BG_MAGENTA = '\033[45m'
|
|
123
|
-
BG_CYAN = '\033[46m'
|
|
124
|
-
BG_WHITE = '\033[47m'
|
|
125
|
-
|
|
126
|
-
# Styles
|
|
127
|
-
BOLD = '\033[1m'
|
|
128
|
-
DIM = '\033[2m'
|
|
129
|
-
ITALIC = '\033[3m'
|
|
130
|
-
UNDERLINE = '\033[4m'
|
|
131
|
-
BLINK = '\033[5m'
|
|
132
|
-
REVERSE = '\033[7m'
|
|
133
|
-
STRIKE = '\033[9m'
|
|
134
|
-
HIDDEN = '\033[8m'
|
|
135
|
-
|
|
136
|
-
# Special
|
|
137
|
-
RESET = '\033[0m'
|
|
138
|
-
CLEAR_SCREEN = '\033[2J'
|
|
139
|
-
CLEAR_LINE = '\033[2K'
|
|
140
|
-
|
|
141
|
-
# Cursor movement
|
|
142
|
-
UP = '\033[1A'
|
|
143
|
-
DOWN = '\033[1B'
|
|
144
|
-
RIGHT = '\033[1C'
|
|
145
|
-
LEFT = '\033[1D'
|
|
105
|
+
# Removed the duplicated Colors class to import from colors.py
|
|
146
106
|
|
|
147
107
|
class SyntaxTheme:
|
|
148
108
|
"""Syntax highlighting theme."""
|
|
@@ -765,68 +725,4 @@ class LitPrinter:
|
|
|
765
725
|
|
|
766
726
|
def _clear_line(self):
|
|
767
727
|
"""Clear the current line."""
|
|
768
|
-
print('\r' + ' ' * self._get_terminal_width(), end='\r', file=self.file, flush=True)
|
|
769
|
-
|
|
770
|
-
print = LitPrinter().print
|
|
771
|
-
if __name__ == "__main__":
|
|
772
|
-
printer = LitPrinter()
|
|
773
|
-
|
|
774
|
-
printer.banner("Welcome to the LitPrinter Demo! ")
|
|
775
|
-
|
|
776
|
-
printer.status("Loading that heat... ")
|
|
777
|
-
time.sleep(1)
|
|
778
|
-
printer.status("Almost ready to drop... ")
|
|
779
|
-
time.sleep(1)
|
|
780
|
-
printer.status("")
|
|
781
|
-
|
|
782
|
-
printer.success("Ayy, we made it! ")
|
|
783
|
-
printer.error("Houston, we got a problem! ")
|
|
784
|
-
printer.warning("Hold up, something sus... ")
|
|
785
|
-
printer.info("Just so you know fam... ")
|
|
786
|
-
|
|
787
|
-
headers = ["Name", "Vibe", "Energy"]
|
|
788
|
-
rows = [
|
|
789
|
-
["Python", "Immaculate", "100%"],
|
|
790
|
-
["Java", "Decent", "75%"],
|
|
791
|
-
["C++", "Complex", "85%"]
|
|
792
|
-
]
|
|
793
|
-
printer.table(headers, rows)
|
|
794
|
-
|
|
795
|
-
data = {
|
|
796
|
-
"squad": {
|
|
797
|
-
"python": {"vibe": "lit", "power": "over 9000"},
|
|
798
|
-
"javascript": {"vibe": "cool", "power": "8000"}
|
|
799
|
-
},
|
|
800
|
-
"config": {
|
|
801
|
-
"mode": "beast",
|
|
802
|
-
"activated": True
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
printer.tree(data)
|
|
806
|
-
|
|
807
|
-
printer.json(data)
|
|
808
|
-
|
|
809
|
-
code = '''def print_drip():
|
|
810
|
-
# This function brings the heat
|
|
811
|
-
print("Straight bussin!")
|
|
812
|
-
return True # No cap'''
|
|
813
|
-
printer.code_block(code)
|
|
814
|
-
|
|
815
|
-
printer.print("Basic text but make it fancy ")
|
|
816
|
-
printer.print("Colors go hard", style=Colors.GREEN)
|
|
817
|
-
printer.print("Bold & Blue = Different breed", style=Colors.BLUE + Colors.BOLD)
|
|
818
|
-
|
|
819
|
-
markdown_text = """# Main Title (Straight Fire)
|
|
820
|
-
## Subtitle (Also Heat)
|
|
821
|
-
- First thing's first
|
|
822
|
-
- Second thing's second
|
|
823
|
-
**Bold moves** and *smooth style*
|
|
824
|
-
"""
|
|
825
|
-
printer.print(markdown_text, markdown=True)
|
|
826
|
-
|
|
827
|
-
test_dict = {
|
|
828
|
-
"name": "LitPrinter",
|
|
829
|
-
"vibes": ["immaculate", "unmatched", "different"],
|
|
830
|
-
"config": {"mode": "beast", "level": "over 9000"}
|
|
831
|
-
}
|
|
832
|
-
printer.print(test_dict)
|
|
728
|
+
print('\r' + ' ' * self._get_terminal_width(), end='\r', file=self.file, flush=True)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
class Colors:
|
|
2
|
+
"""ANSI color codes for terminal output."""
|
|
3
|
+
# Base colors
|
|
4
|
+
BLACK = '\033[30m'
|
|
5
|
+
RED = '\033[31m'
|
|
6
|
+
GREEN = '\033[32m'
|
|
7
|
+
YELLOW = '\033[33m'
|
|
8
|
+
BLUE = '\033[34m'
|
|
9
|
+
MAGENTA = '\033[35m'
|
|
10
|
+
CYAN = '\033[36m'
|
|
11
|
+
WHITE = '\033[37m'
|
|
12
|
+
GRAY = '\033[90m'
|
|
13
|
+
|
|
14
|
+
# Bright colors
|
|
15
|
+
BRIGHT_BLACK = '\033[90m'
|
|
16
|
+
BRIGHT_RED = '\033[91m'
|
|
17
|
+
BRIGHT_GREEN = '\033[92m'
|
|
18
|
+
BRIGHT_YELLOW = '\033[93m'
|
|
19
|
+
BRIGHT_BLUE = '\033[94m'
|
|
20
|
+
BRIGHT_MAGENTA = '\033[95m'
|
|
21
|
+
BRIGHT_CYAN = '\033[96m'
|
|
22
|
+
BRIGHT_WHITE = '\033[97m'
|
|
23
|
+
|
|
24
|
+
# Background colors
|
|
25
|
+
BG_BLACK = '\033[40m'
|
|
26
|
+
BG_RED = '\033[41m'
|
|
27
|
+
BG_GREEN = '\033[42m'
|
|
28
|
+
BG_YELLOW = '\033[43m'
|
|
29
|
+
BG_BLUE = '\033[44m'
|
|
30
|
+
BG_MAGENTA = '\033[45m'
|
|
31
|
+
BG_CYAN = '\033[46m'
|
|
32
|
+
BG_WHITE = '\033[47m'
|
|
33
|
+
|
|
34
|
+
# Styles
|
|
35
|
+
BOLD = '\033[1m'
|
|
36
|
+
DIM = '\033[2m'
|
|
37
|
+
ITALIC = '\033[3m'
|
|
38
|
+
UNDERLINE = '\033[4m'
|
|
39
|
+
BLINK = '\033[5m'
|
|
40
|
+
REVERSE = '\033[7m'
|
|
41
|
+
STRIKE = '\033[9m'
|
|
42
|
+
HIDDEN = '\033[8m'
|
|
43
|
+
|
|
44
|
+
# Special
|
|
45
|
+
RESET = '\033[0m'
|
|
46
|
+
CLEAR_SCREEN = '\033[2J'
|
|
47
|
+
CLEAR_LINE = '\033[2K'
|
|
48
|
+
|
|
49
|
+
# Cursor movement
|
|
50
|
+
UP = '\033[1A'
|
|
51
|
+
DOWN = '\033[1B'
|
|
52
|
+
RIGHT = '\033[1C'
|
|
53
|
+
LEFT = '\033[1D'
|
|
54
|
+
|