webscout 7.9__py3-none-any.whl → 8.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.

Files changed (69) hide show
  1. webscout/Extra/GitToolkit/__init__.py +10 -0
  2. webscout/Extra/GitToolkit/gitapi/__init__.py +12 -0
  3. webscout/Extra/GitToolkit/gitapi/repository.py +195 -0
  4. webscout/Extra/GitToolkit/gitapi/user.py +96 -0
  5. webscout/Extra/GitToolkit/gitapi/utils.py +62 -0
  6. webscout/Extra/YTToolkit/ytapi/video.py +232 -103
  7. webscout/Provider/AISEARCH/DeepFind.py +1 -1
  8. webscout/Provider/AISEARCH/ISou.py +1 -1
  9. webscout/Provider/AISEARCH/__init__.py +6 -1
  10. webscout/Provider/AISEARCH/felo_search.py +1 -1
  11. webscout/Provider/AISEARCH/genspark_search.py +1 -1
  12. webscout/Provider/AISEARCH/hika_search.py +194 -0
  13. webscout/Provider/AISEARCH/iask_search.py +436 -0
  14. webscout/Provider/AISEARCH/monica_search.py +246 -0
  15. webscout/Provider/AISEARCH/scira_search.py +320 -0
  16. webscout/Provider/AISEARCH/webpilotai_search.py +281 -0
  17. webscout/Provider/AllenAI.py +255 -122
  18. webscout/Provider/DeepSeek.py +1 -2
  19. webscout/Provider/Deepinfra.py +17 -9
  20. webscout/Provider/ExaAI.py +261 -0
  21. webscout/Provider/ExaChat.py +8 -1
  22. webscout/Provider/GithubChat.py +2 -1
  23. webscout/Provider/Jadve.py +2 -2
  24. webscout/Provider/Netwrck.py +3 -2
  25. webscout/Provider/OPENAI/__init__.py +17 -0
  26. webscout/Provider/OPENAI/base.py +46 -0
  27. webscout/Provider/OPENAI/c4ai.py +347 -0
  28. webscout/Provider/OPENAI/chatgptclone.py +460 -0
  29. webscout/Provider/OPENAI/deepinfra.py +284 -0
  30. webscout/Provider/OPENAI/exaai.py +419 -0
  31. webscout/Provider/OPENAI/exachat.py +421 -0
  32. webscout/Provider/OPENAI/freeaichat.py +355 -0
  33. webscout/Provider/OPENAI/glider.py +314 -0
  34. webscout/Provider/OPENAI/heckai.py +337 -0
  35. webscout/Provider/OPENAI/llmchatco.py +325 -0
  36. webscout/Provider/OPENAI/netwrck.py +348 -0
  37. webscout/Provider/OPENAI/scirachat.py +459 -0
  38. webscout/Provider/OPENAI/sonus.py +294 -0
  39. webscout/Provider/OPENAI/typegpt.py +361 -0
  40. webscout/Provider/OPENAI/utils.py +211 -0
  41. webscout/Provider/OPENAI/venice.py +428 -0
  42. webscout/Provider/OPENAI/wisecat.py +381 -0
  43. webscout/Provider/OPENAI/x0gpt.py +389 -0
  44. webscout/Provider/OPENAI/yep.py +329 -0
  45. webscout/Provider/OpenGPT.py +199 -0
  46. webscout/Provider/PI.py +39 -24
  47. webscout/Provider/Venice.py +1 -1
  48. webscout/Provider/Youchat.py +326 -296
  49. webscout/Provider/__init__.py +16 -6
  50. webscout/Provider/ai4chat.py +58 -56
  51. webscout/Provider/akashgpt.py +34 -22
  52. webscout/Provider/freeaichat.py +1 -1
  53. webscout/Provider/labyrinth.py +121 -20
  54. webscout/Provider/llmchatco.py +306 -0
  55. webscout/Provider/scira_chat.py +274 -0
  56. webscout/Provider/typefully.py +280 -0
  57. webscout/Provider/typegpt.py +3 -184
  58. webscout/prompt_manager.py +2 -1
  59. webscout/version.py +1 -1
  60. webscout/webscout_search.py +118 -54
  61. webscout/webscout_search_async.py +109 -45
  62. webscout-8.1.dist-info/METADATA +683 -0
  63. {webscout-7.9.dist-info → webscout-8.1.dist-info}/RECORD +67 -33
  64. webscout/Provider/flowith.py +0 -207
  65. webscout-7.9.dist-info/METADATA +0 -995
  66. {webscout-7.9.dist-info → webscout-8.1.dist-info}/LICENSE.md +0 -0
  67. {webscout-7.9.dist-info → webscout-8.1.dist-info}/WHEEL +0 -0
  68. {webscout-7.9.dist-info → webscout-8.1.dist-info}/entry_points.txt +0 -0
  69. {webscout-7.9.dist-info → webscout-8.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,683 @@
1
+ Metadata-Version: 2.1
2
+ Name: webscout
3
+ Version: 8.1
4
+ Summary: Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can transcribe yt videos, temporary email and phone number generation, has TTS support, webai (terminal gpt and open interpreter) and offline LLMs and more
5
+ Author: OEvortex
6
+ Author-email: helpingai5@gmail.com
7
+ License: HelpingAI
8
+ Project-URL: Source, https://github.com/OE-LUCIFER/Webscout
9
+ Project-URL: Tracker, https://github.com/OE-LUCIFER/Webscout/issues
10
+ Project-URL: YouTube, https://youtube.com/@OEvortex
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: Other/Proprietary License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: Implementation :: CPython
22
+ Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Requires-Python: >=3.9
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE.md
27
+ Requires-Dist: setuptools
28
+ Requires-Dist: wheel
29
+ Requires-Dist: pip
30
+ Requires-Dist: nodriver
31
+ Requires-Dist: mistune
32
+ Requires-Dist: tenacity
33
+ Requires-Dist: curl-cffi
34
+ Requires-Dist: nest-asyncio
35
+ Requires-Dist: websocket-client
36
+ Requires-Dist: colorama
37
+ Requires-Dist: rich
38
+ Requires-Dist: markdownify
39
+ Requires-Dist: requests
40
+ Requires-Dist: google-generativeai
41
+ Requires-Dist: lxml>=5.2.2
42
+ Requires-Dist: termcolor
43
+ Requires-Dist: orjson
44
+ Requires-Dist: PyYAML
45
+ Requires-Dist: ollama
46
+ Requires-Dist: pillow
47
+ Requires-Dist: bson
48
+ Requires-Dist: cloudscraper
49
+ Requires-Dist: html5lib
50
+ Requires-Dist: aiofiles
51
+ Requires-Dist: openai
52
+ Requires-Dist: prompt-toolkit
53
+ Requires-Dist: primp
54
+ Requires-Dist: pyreqwest-impersonate
55
+ Requires-Dist: gradio-client
56
+ Requires-Dist: psutil
57
+ Requires-Dist: aiohttp
58
+ Provides-Extra: dev
59
+ Requires-Dist: ruff>=0.1.6; extra == "dev"
60
+ Requires-Dist: pytest>=7.4.2; extra == "dev"
61
+
62
+ <div align="center">
63
+ <a href="https://github.com/OEvortex/Webscout">
64
+ <img src="https://img.shields.io/badge/WebScout-Ultimate%20Toolkit-blue?style=for-the-badge&logo=python&logoColor=white" alt="WebScout Logo">
65
+ </a>
66
+
67
+ <h1>Webscout</h1>
68
+
69
+ <p><strong>Your All-in-One Python Toolkit for Web Search, AI Interaction, Digital Utilities, and More</strong></p>
70
+
71
+ <p>
72
+ Access diverse search engines, cutting-edge AI models, temporary communication tools, media utilities, developer helpers, and powerful CLI interfaces – all through one unified library.
73
+ </p>
74
+
75
+ <!-- Badges -->
76
+ <p>
77
+ <a href="https://pypi.org/project/webscout/"><img src="https://img.shields.io/pypi/v/webscout.svg?style=flat-square&logo=pypi&label=PyPI" alt="PyPI Version"></a>
78
+ <a href="https://pepy.tech/project/webscout"><img src="https://static.pepy.tech/badge/webscout/month?style=flat-square" alt="Monthly Downloads"></a>
79
+ <a href="https://pepy.tech/project/webscout"><img src="https://static.pepy.tech/badge/webscout?style=flat-square" alt="Total Downloads"></a>
80
+ <a href="#"><img src="https://img.shields.io/pypi/pyversions/webscout?style=flat-square&logo=python" alt="Python Version"></a>
81
+ </p>
82
+ </div>
83
+
84
+ > [!IMPORTANT]
85
+ > Webscout supports two types of compatibility:
86
+ > - **Native Compatibility:** Webscout's own native API for maximum flexibility
87
+ > - **OpenAI Compatibility:** Use providers with OpenAI-compatible interfaces
88
+ >
89
+ > Choose the approach that best fits your needs! For OpenAI compatibility, check the [OpenAI Providers README](webscout/Provider/OPENAI/README.md).
90
+
91
+ > [!NOTE]
92
+ > Webscout supports over 90 AI providers including: LLAMA, C4ai, Venice, Copilot, HuggingFaceChat, PerplexityLabs, DeepSeek, WiseCat, GROQ, OPENAI, GEMINI, DeepInfra, Meta, YEPCHAT, TypeGPT, ChatGPTClone, ExaAI, Claude, Anthropic, Cloudflare, AI21, Cerebras, and many more. All providers follow similar usage patterns with consistent interfaces.
93
+
94
+ <div align="center">
95
+ <!-- Social/Support Links -->
96
+ <p>
97
+ <a href="https://t.me/PyscoutAI"><img alt="Telegram Group" src="https://img.shields.io/badge/Telegram%20Group-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white"></a>
98
+ <a href="https://t.me/ANONYMOUS_56788"><img alt="Developer Telegram" src="https://img.shields.io/badge/Developer%20Contact-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white"></a>
99
+ <a href="https://youtube.com/@OEvortex"><img alt="YouTube" src="https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge&logo=youtube&logoColor=white"></a>
100
+ <a href="https://www.linkedin.com/in/oe-vortex-29a407265/"><img alt="LinkedIn" src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white"></a>
101
+ <a href="https://www.instagram.com/oevortex/"><img alt="Instagram" src="https://img.shields.io/badge/Instagram-E4405F?style=for-the-badge&logo=instagram&logoColor=white"></a>
102
+ <a href="https://buymeacoffee.com/oevortex"><img alt="Buy Me A Coffee" src="https://img.shields.io/badge/Buy%20Me%20A%20Coffee-FFDD00?style=for-the-badge&logo=buymeacoffee&logoColor=black"></a>
103
+ </p>
104
+ </div>
105
+
106
+
107
+ ## 🚀 Features
108
+
109
+ ### Search & AI
110
+ * **Comprehensive Search:** Leverage Google, DuckDuckGo, and Yep for diverse search results
111
+ * **AI Powerhouse:** Access and interact with various AI models through two compatibility options:
112
+ * **Native API:** Use Webscout's native interfaces for providers like OpenAI, Cohere, Gemini, and many more
113
+ * **[OpenAI-Compatible Providers](webscout/Provider/OPENAI/README.md):** Seamlessly integrate with various AI providers using standardized OpenAI-compatible interfaces
114
+ * **[AI Search](webscout/Provider/AISEARCH/README.md):** AI-powered search engines with advanced capabilities
115
+
116
+ ### Media & Content Tools
117
+ * **[YouTube Toolkit](webscout/Extra/YTToolkit/README.md):** Advanced YouTube video and transcript management with multi-language support
118
+ * **[Text-to-Speech (TTS)](webscout/Provider/TTS/README.md):** Convert text into natural-sounding speech using multiple AI-powered providers
119
+ * **[Text-to-Image](webscout/Provider/TTI/README.md):** Generate high-quality images using a wide range of AI art providers
120
+ * **[Weather Tools](webscout/Extra/weather.md):** Retrieve detailed weather information for any location
121
+
122
+ ### Developer Tools
123
+ * **[GitAPI](webscout/Extra/GitToolkit/gitapi):** Powerful GitHub data extraction toolkit without authentication requirements for public data
124
+ * **[SwiftCLI](webscout/swiftcli/Readme.md):** A powerful and elegant CLI framework for beautiful command-line interfaces
125
+ * **[LitPrinter](webscout/litprinter/Readme.md):** Styled console output with rich formatting and colors
126
+ * **[LitLogger](webscout/litlogger/Readme.md):** Simplified logging with customizable formats and color schemes
127
+ * **[LitAgent](webscout/litagent/Readme.md):** Modern user agent generator that keeps your requests undetectable
128
+ * **[Scout](webscout/scout/README.md):** Advanced web parsing and crawling library with intelligent HTML/XML parsing
129
+ * **GGUF Conversion:** Convert and quantize Hugging Face models to GGUF format
130
+
131
+ ### Privacy & Utilities
132
+ * **[Tempmail](webscout/Extra/tempmail/README.md) & Temp Number:** Generate temporary email addresses and phone numbers
133
+ * **[Awesome Prompts](webscout/Extra/Act.md):** Curated collection of system prompts for specialized AI personas
134
+
135
+ ## ⚙️ Installation
136
+
137
+ Install Webscout using pip:
138
+
139
+ ```bash
140
+ pip install -U webscout
141
+ ```
142
+
143
+ ## 🖥️ Command Line Interface
144
+
145
+ Webscout provides a powerful command-line interface for quick access to its features:
146
+
147
+ ```bash
148
+ python -m webscout --help
149
+ ```
150
+
151
+ | Command | Description |
152
+ |---------|-------------|
153
+ | `python -m webscout answers -k "query"` | Perform an answers search |
154
+ | `python -m webscout chat` | Start an interactive AI chat session |
155
+ | `python -m webscout images -k "query"` | Search for images |
156
+ | `python -m webscout maps -k "query"` | Perform a maps search |
157
+ | `python -m webscout news -k "query"` | Search for news articles |
158
+ | `python -m webscout suggestions -k "query"` | Get search suggestions |
159
+ | `python -m webscout text -k "query"` | Perform a text search |
160
+ | `python -m webscout translate -k "text"` | Translate text |
161
+ | `python -m webscout version` | Display the current version |
162
+ | `python -m webscout videos -k "query"` | Search for videos |
163
+ | `python -m webscout weather -l "location"` | Get weather information |
164
+
165
+
166
+
167
+ ## 🔍 Search Engines
168
+
169
+ Webscout provides multiple search engine interfaces for diverse search capabilities.
170
+
171
+ ### YepSearch - Yep.com Interface
172
+
173
+ ```python
174
+ from webscout import YepSearch
175
+
176
+ # Initialize YepSearch
177
+ yep = YepSearch(
178
+ timeout=20, # Optional: Set custom timeout
179
+ proxies=None, # Optional: Use proxies
180
+ verify=True # Optional: SSL verification
181
+ )
182
+
183
+ # Text Search
184
+ text_results = yep.text(
185
+ keywords="artificial intelligence",
186
+ region="all", # Optional: Region for results
187
+ safesearch="moderate", # Optional: "on", "moderate", "off"
188
+ max_results=10 # Optional: Limit number of results
189
+ )
190
+
191
+ # Image Search
192
+ image_results = yep.images(
193
+ keywords="nature photography",
194
+ region="all",
195
+ safesearch="moderate",
196
+ max_results=10
197
+ )
198
+
199
+ # Get search suggestions
200
+ suggestions = yep.suggestions("hist")
201
+ ```
202
+
203
+ ### GoogleSearch - Google Interface
204
+
205
+ ```python
206
+ from webscout import GoogleSearch
207
+
208
+ # Initialize GoogleSearch
209
+ google = GoogleSearch(
210
+ timeout=10, # Optional: Set custom timeout
211
+ proxies=None, # Optional: Use proxies
212
+ verify=True # Optional: SSL verification
213
+ )
214
+
215
+ # Text Search
216
+ text_results = google.text(
217
+ keywords="artificial intelligence",
218
+ region="us", # Optional: Region for results
219
+ safesearch="moderate", # Optional: "on", "moderate", "off"
220
+ max_results=10 # Optional: Limit number of results
221
+ )
222
+ for result in text_results:
223
+ print(f"Title: {result.title}")
224
+ print(f"URL: {result.url}")
225
+ print(f"Description: {result.description}")
226
+
227
+ # News Search
228
+ news_results = google.news(
229
+ keywords="technology trends",
230
+ region="us",
231
+ safesearch="moderate",
232
+ max_results=5
233
+ )
234
+
235
+ # Get search suggestions
236
+ suggestions = google.suggestions("how to")
237
+
238
+ # Legacy usage is still supported
239
+ from webscout import search
240
+ results = search("Python programming", num_results=5)
241
+ ```
242
+
243
+ ## 🦆 DuckDuckGo Search with WEBS and AsyncWEBS
244
+
245
+ Webscout provides powerful interfaces to DuckDuckGo's search capabilities through the `WEBS` and `AsyncWEBS` classes.
246
+
247
+ ### Synchronous Usage with WEBS
248
+
249
+ ```python
250
+ from webscout import WEBS
251
+
252
+ # Use as a context manager for proper resource management
253
+ with WEBS() as webs:
254
+ # Simple text search
255
+ results = webs.text("python programming", max_results=5)
256
+ for result in results:
257
+ print(f"Title: {result['title']}\nURL: {result['url']}")
258
+ ```
259
+
260
+ ### Asynchronous Usage with AsyncWEBS
261
+
262
+ ```python
263
+ import asyncio
264
+ from webscout import AsyncWEBS
265
+
266
+ async def search_multiple_terms(search_terms):
267
+ async with AsyncWEBS() as webs:
268
+ # Create tasks for each search term
269
+ tasks = [webs.text(term, max_results=5) for term in search_terms]
270
+ # Run all searches concurrently
271
+ results = await asyncio.gather(*tasks)
272
+ return results
273
+
274
+ async def main():
275
+ terms = ["python", "javascript", "machine learning"]
276
+ all_results = await search_multiple_terms(terms)
277
+
278
+ # Process results
279
+ for i, term_results in enumerate(all_results):
280
+ print(f"Results for '{terms[i]}':\n")
281
+ for result in term_results:
282
+ print(f"- {result['title']}")
283
+ print("\n")
284
+
285
+ # Run the async function
286
+ asyncio.run(main())
287
+ ```
288
+
289
+ > [!NOTE]
290
+ > Always use these classes with a context manager (`with` statement) to ensure proper resource management and cleanup.
291
+
292
+ ## 💻 WEBS API Reference
293
+
294
+ The WEBS class provides comprehensive access to DuckDuckGo's search capabilities through a clean, intuitive API.
295
+
296
+ ### Available Search Methods
297
+
298
+ | Method | Description | Example |
299
+ |--------|-------------|--------|
300
+ | `text()` | General web search | `webs.text('python programming')` |
301
+ | `answers()` | Instant answers | `webs.answers('population of france')` |
302
+ | `images()` | Image search | `webs.images('nature photography')` |
303
+ | `videos()` | Video search | `webs.videos('documentary')` |
304
+ | `news()` | News articles | `webs.news('technology')` |
305
+ | `maps()` | Location search | `webs.maps('restaurants', place='new york')` |
306
+ | `translate()` | Text translation | `webs.translate('hello', to='es')` |
307
+ | `suggestions()` | Search suggestions | `webs.suggestions('how to')` |
308
+ | `weather()` | Weather information | `webs.weather('london')` |
309
+
310
+ ### Example: Text Search
311
+
312
+ ```python
313
+ from webscout import WEBS
314
+
315
+ with WEBS() as webs:
316
+ results = webs.text(
317
+ 'artificial intelligence',
318
+ region='wt-wt', # Optional: Region for results
319
+ safesearch='off', # Optional: 'on', 'moderate', 'off'
320
+ timelimit='y', # Optional: Time limit ('d'=day, 'w'=week, 'm'=month, 'y'=year)
321
+ max_results=10 # Optional: Limit number of results
322
+ )
323
+
324
+ for result in results:
325
+ print(f"Title: {result['title']}")
326
+ print(f"URL: {result['url']}")
327
+ print(f"Description: {result['body']}\n")
328
+ ```
329
+
330
+ ### Example: News Search with Formatting
331
+
332
+ ```python
333
+ from webscout import WEBS
334
+ import datetime
335
+
336
+ def fetch_formatted_news(keywords, timelimit='d', max_results=20):
337
+ """Fetch and format news articles"""
338
+ with WEBS() as webs:
339
+ # Get news results
340
+ news_results = webs.news(
341
+ keywords,
342
+ region="wt-wt",
343
+ safesearch="off",
344
+ timelimit=timelimit, # 'd'=day, 'w'=week, 'm'=month
345
+ max_results=max_results
346
+ )
347
+
348
+ # Format the results
349
+ formatted_news = []
350
+ for i, item in enumerate(news_results, 1):
351
+ # Format the date
352
+ date = datetime.datetime.fromisoformat(item['date']).strftime('%B %d, %Y')
353
+
354
+ # Create formatted entry
355
+ entry = f"{i}. {item['title']}\n"
356
+ entry += f" Published: {date}\n"
357
+ entry += f" {item['body']}\n"
358
+ entry += f" URL: {item['url']}\n"
359
+
360
+ formatted_news.append(entry)
361
+
362
+ return formatted_news
363
+
364
+ # Example usage
365
+ news = fetch_formatted_news('artificial intelligence', timelimit='w', max_results=5)
366
+ print('\n'.join(news))
367
+ ```
368
+
369
+ ### Example: Weather Information
370
+
371
+ ```python
372
+ from webscout import WEBS
373
+
374
+ with WEBS() as webs:
375
+ # Get weather for a location
376
+ weather = webs.weather("New York")
377
+
378
+ # Access weather data
379
+ if weather:
380
+ print(f"Location: {weather.get('location', 'Unknown')}")
381
+ print(f"Temperature: {weather.get('temperature', 'N/A')}")
382
+ print(f"Conditions: {weather.get('condition', 'N/A')}")
383
+ ```
384
+
385
+ ## 🤖 AI Models and Voices
386
+
387
+ Webscout provides easy access to a wide range of AI models and voice options.
388
+
389
+ ### LLM Models
390
+
391
+ Access and manage Large Language Models with Webscout's model utilities.
392
+
393
+ ```python
394
+ from webscout import model
395
+ from rich import print
396
+
397
+ # List all available LLM models
398
+ all_models = model.llm.list()
399
+ print(f"Total available models: {len(all_models)}")
400
+
401
+ # Get a summary of models by provider
402
+ summary = model.llm.summary()
403
+ print("Models by provider:")
404
+ for provider, count in summary.items():
405
+ print(f" {provider}: {count} models")
406
+
407
+ # Get models for a specific provider
408
+ provider_name = "PerplexityLabs"
409
+ available_models = model.llm.get(provider_name)
410
+ print(f"\n{provider_name} models:")
411
+ if isinstance(available_models, list):
412
+ for i, model_name in enumerate(available_models, 1):
413
+ print(f" {i}. {model_name}")
414
+ else:
415
+ print(f" {available_models}")
416
+ ```
417
+
418
+ ### TTS Voices
419
+
420
+ Access and manage Text-to-Speech voices across multiple providers.
421
+
422
+ ```python
423
+ from webscout import model
424
+ from rich import print
425
+
426
+ # List all available TTS voices
427
+ all_voices = model.tts.list()
428
+ print(f"Total available voices: {len(all_voices)}")
429
+
430
+ # Get a summary of voices by provider
431
+ summary = model.tts.summary()
432
+ print("\nVoices by provider:")
433
+ for provider, count in summary.items():
434
+ print(f" {provider}: {count} voices")
435
+
436
+ # Get voices for a specific provider
437
+ provider_name = "ElevenlabsTTS"
438
+ available_voices = model.tts.get(provider_name)
439
+ print(f"\n{provider_name} voices:")
440
+ if isinstance(available_voices, dict):
441
+ for voice_name, voice_id in list(available_voices.items())[:5]: # Show first 5 voices
442
+ print(f" - {voice_name}: {voice_id}")
443
+ if len(available_voices) > 5:
444
+ print(f" ... and {len(available_voices) - 5} more")
445
+ ```
446
+
447
+ ## 💬 AI Chat Providers
448
+
449
+ Webscout offers a comprehensive collection of AI chat providers, giving you access to various language models through a consistent interface.
450
+
451
+ ### Popular AI Providers
452
+
453
+ | Provider | Description | Key Features |
454
+ |----------|-------------|-------------|
455
+ | `OPENAI` | OpenAI's models | GPT-3.5, GPT-4, tool calling |
456
+ | `GEMINI` | Google's Gemini models | Web search capabilities |
457
+ | `Meta` | Meta's AI assistant | Image generation, web search |
458
+ | `GROQ` | Fast inference platform | High-speed inference, tool calling |
459
+ | `LLAMA` | Meta's Llama models | Open weights models |
460
+ | `DeepInfra` | Various open models | Multiple model options |
461
+ | `Cohere` | Cohere's language models | Command models |
462
+ | `PerplexityLabs` | Perplexity AI | Web search integration |
463
+ | `Anthropic` | Claude models | Long context windows |
464
+ | `YEPCHAT` | Yep.com's AI | Streaming responses |
465
+ | `ChatGPTClone` | ChatGPT-like interface | Multiple model options |
466
+ | `TypeGPT` | TypeChat models | Code generation focus |
467
+
468
+ ### Example: Using Duckchat
469
+
470
+ ```python
471
+ from webscout import WEBS
472
+
473
+ # Initialize and use Duckchat
474
+ with WEBS() as webs:
475
+ response = webs.chat(
476
+ "Explain quantum computing in simple terms",
477
+ model='gpt-4o-mini' # Options: mixtral-8x7b, llama-3.1-70b, claude-3-haiku, etc.
478
+ )
479
+ print(response)
480
+ ```
481
+
482
+ ### Example: Using Meta AI
483
+
484
+ ```python
485
+ from webscout import Meta
486
+
487
+ # For basic usage (no authentication required)
488
+ meta_ai = Meta()
489
+
490
+ # Simple text prompt
491
+ response = meta_ai.chat("What is the capital of France?")
492
+ print(response)
493
+
494
+ # For authenticated usage with web search and image generation
495
+ meta_ai = Meta(fb_email="your_email@example.com", fb_password="your_password")
496
+
497
+ # Text prompt with web search
498
+ response = meta_ai.ask("What are the latest developments in quantum computing?")
499
+ print(response["message"])
500
+ print("Sources:", response["sources"])
501
+
502
+ # Image generation
503
+ response = meta_ai.ask("Create an image of a futuristic city")
504
+ for media in response.get("media", []):
505
+ print(media["url"])
506
+ ```
507
+
508
+ ### Example: GROQ with Tool Calling
509
+
510
+ ```python
511
+ from webscout import GROQ, WEBS
512
+ import json
513
+
514
+ # Initialize GROQ client
515
+ client = GROQ(api_key="your_api_key")
516
+
517
+ # Define helper functions
518
+ def calculate(expression):
519
+ """Evaluate a mathematical expression"""
520
+ try:
521
+ result = eval(expression)
522
+ return json.dumps({"result": result})
523
+ except Exception as e:
524
+ return json.dumps({"error": str(e)})
525
+
526
+ def search(query):
527
+ """Perform a web search"""
528
+ try:
529
+ results = WEBS().text(query, max_results=3)
530
+ return json.dumps({"results": results})
531
+ except Exception as e:
532
+ return json.dumps({"error": str(e)})
533
+
534
+ # Register functions with GROQ
535
+ client.add_function("calculate", calculate)
536
+ client.add_function("search", search)
537
+
538
+ # Define tool specifications
539
+ tools = [
540
+ {
541
+ "type": "function",
542
+ "function": {
543
+ "name": "calculate",
544
+ "description": "Evaluate a mathematical expression",
545
+ "parameters": {
546
+ "type": "object",
547
+ "properties": {
548
+ "expression": {
549
+ "type": "string",
550
+ "description": "The mathematical expression to evaluate"
551
+ }
552
+ },
553
+ "required": ["expression"]
554
+ }
555
+ }
556
+ },
557
+ {
558
+ "type": "function",
559
+ "function": {
560
+ "name": "search",
561
+ "description": "Perform a web search",
562
+ "parameters": {
563
+ "type": "object",
564
+ "properties": {
565
+ "query": {
566
+ "type": "string",
567
+ "description": "The search query"
568
+ }
569
+ },
570
+ "required": ["query"]
571
+ }
572
+ }
573
+ }
574
+ ]
575
+
576
+ # Use the tools
577
+ response = client.chat("What is 25 * 4 + 10?", tools=tools)
578
+ print(response)
579
+
580
+ response = client.chat("Find information about quantum computing", tools=tools)
581
+ print(response)
582
+ ```
583
+
584
+ ## 👨‍💻 Advanced AI Interfaces
585
+
586
+ ### Direct Model Access with LLM and VLM
587
+
588
+ Webscout provides direct interfaces to language and vision-language models through the `LLM` and `VLM` classes.
589
+
590
+ ```python
591
+ from webscout.LLM import LLM, VLM
592
+
593
+ # Text-only model interaction
594
+ llm = LLM("meta-llama/Meta-Llama-3-70B-Instruct")
595
+ response = llm.chat([
596
+ {"role": "user", "content": "Explain the concept of neural networks"}
597
+ ])
598
+ print(response)
599
+
600
+ # Vision-language model interaction
601
+ vlm = VLM("cogvlm-grounding-generalist")
602
+ response = vlm.chat([
603
+ {
604
+ "role": "user",
605
+ "content": [
606
+ {"type": "image", "image_url": "path/to/image.jpg"},
607
+ {"type": "text", "text": "Describe what you see in this image"}
608
+ ]
609
+ }
610
+ ])
611
+ print(response)
612
+ ```
613
+
614
+ ### GGUF Model Conversion
615
+
616
+ Webscout provides tools to convert and quantize Hugging Face models into the GGUF format for offline use.
617
+
618
+ ```python
619
+ from webscout.Extra.gguf import ModelConverter
620
+
621
+ # Create a converter instance
622
+ converter = ModelConverter(
623
+ model_id="mistralai/Mistral-7B-Instruct-v0.2", # Hugging Face model ID
624
+ quantization_methods="q4_k_m" # Quantization method
625
+ )
626
+
627
+ # Run the conversion
628
+ converter.convert()
629
+ ```
630
+
631
+ #### Available Quantization Methods
632
+
633
+ | Method | Description |
634
+ |--------|-------------|
635
+ | `fp16` | 16-bit floating point - maximum accuracy, largest size |
636
+ | `q2_k` | 2-bit quantization (smallest size, lowest accuracy) |
637
+ | `q3_k_l` | 3-bit quantization (large) - balanced for size/accuracy |
638
+ | `q3_k_m` | 3-bit quantization (medium) - good balance for most use cases |
639
+ | `q3_k_s` | 3-bit quantization (small) - optimized for speed |
640
+ | `q4_0` | 4-bit quantization (version 0) - standard 4-bit compression |
641
+ | `q4_1` | 4-bit quantization (version 1) - improved accuracy over q4_0 |
642
+ | `q4_k_m` | 4-bit quantization (medium) - balanced for most models |
643
+ | `q4_k_s` | 4-bit quantization (small) - optimized for speed |
644
+ | `q5_0` | 5-bit quantization (version 0) - high accuracy, larger size |
645
+ | `q5_1` | 5-bit quantization (version 1) - improved accuracy over q5_0 |
646
+ | `q5_k_m` | 5-bit quantization (medium) - best balance for quality/size |
647
+ | `q5_k_s` | 5-bit quantization (small) - optimized for speed |
648
+ | `q6_k` | 6-bit quantization - highest accuracy, largest size |
649
+ | `q8_0` | 8-bit quantization - maximum accuracy, largest size |
650
+
651
+ #### Command Line Usage
652
+
653
+ ```bash
654
+ python -m webscout.Extra.gguf convert -m "mistralai/Mistral-7B-Instruct-v0.2" -q "q4_k_m"
655
+ ```
656
+
657
+ <div align="center">
658
+ <p>
659
+ <a href="https://youtube.com/@OEvortex">▶️ Vortex's YouTube Channel</a> |
660
+ <a href="https://t.me/ANONYMOUS_56788">📢 Anonymous Coder's Telegram</a>
661
+ </p>
662
+ </div>
663
+
664
+ ## 🤝 Contributing
665
+
666
+ Contributions are welcome! If you'd like to contribute to Webscout, please follow these steps:
667
+
668
+ 1. Fork the repository
669
+ 2. Create a new branch for your feature or bug fix
670
+ 3. Make your changes and commit them with descriptive messages
671
+ 4. Push your branch to your forked repository
672
+ 5. Submit a pull request to the main repository
673
+
674
+ ## 🙏 Acknowledgments
675
+
676
+ * All the amazing developers who have contributed to the project
677
+ * The open-source community for their support and inspiration
678
+
679
+ ---
680
+
681
+ <div align="center">
682
+ <p>Made with ❤️ by the Webscout team</p>
683
+ </div>