webscout 4.6__tar.gz → 4.7__tar.gz

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 (85) hide show
  1. {webscout-4.6/webscout.egg-info → webscout-4.7}/PKG-INFO +29 -47
  2. {webscout-4.6 → webscout-4.7}/README.md +27 -46
  3. {webscout-4.6 → webscout-4.7}/setup.py +2 -1
  4. {webscout-4.6 → webscout-4.7}/webscout/Provider/__init__.py +4 -1
  5. webscout-4.7/webscout/Provider/meta.py +778 -0
  6. {webscout-4.6 → webscout-4.7}/webscout/exceptions.py +6 -0
  7. {webscout-4.6 → webscout-4.7/webscout.egg-info}/PKG-INFO +29 -47
  8. {webscout-4.6 → webscout-4.7}/webscout.egg-info/SOURCES.txt +2 -1
  9. {webscout-4.6 → webscout-4.7}/webscout.egg-info/requires.txt +1 -0
  10. {webscout-4.6 → webscout-4.7}/LICENSE.md +0 -0
  11. {webscout-4.6 → webscout-4.7}/setup.cfg +0 -0
  12. {webscout-4.6 → webscout-4.7}/webscout/AIauto.py +0 -0
  13. {webscout-4.6 → webscout-4.7}/webscout/AIbase.py +0 -0
  14. {webscout-4.6 → webscout-4.7}/webscout/AIutel.py +0 -0
  15. {webscout-4.6 → webscout-4.7}/webscout/Agents/Onlinesearcher.py +0 -0
  16. {webscout-4.6 → webscout-4.7}/webscout/Agents/__init__.py +0 -0
  17. {webscout-4.6 → webscout-4.7}/webscout/Agents/functioncall.py +0 -0
  18. {webscout-4.6 → webscout-4.7}/webscout/DWEBS.py +0 -0
  19. {webscout-4.6 → webscout-4.7}/webscout/Extra/__init__.py +0 -0
  20. {webscout-4.6 → webscout-4.7}/webscout/Extra/autollama.py +0 -0
  21. {webscout-4.6 → webscout-4.7}/webscout/Extra/gguf.py +0 -0
  22. {webscout-4.6 → webscout-4.7}/webscout/Extra/weather.py +0 -0
  23. {webscout-4.6 → webscout-4.7}/webscout/Extra/weather_ascii.py +0 -0
  24. {webscout-4.6 → webscout-4.7}/webscout/GoogleS.py +0 -0
  25. {webscout-4.6 → webscout-4.7}/webscout/LLM.py +0 -0
  26. {webscout-4.6 → webscout-4.7}/webscout/Local/__init__.py +0 -0
  27. {webscout-4.6 → webscout-4.7}/webscout/Local/_version.py +0 -0
  28. {webscout-4.6 → webscout-4.7}/webscout/Local/formats.py +0 -0
  29. {webscout-4.6 → webscout-4.7}/webscout/Local/model.py +0 -0
  30. {webscout-4.6 → webscout-4.7}/webscout/Local/rawdog.py +0 -0
  31. {webscout-4.6 → webscout-4.7}/webscout/Local/samplers.py +0 -0
  32. {webscout-4.6 → webscout-4.7}/webscout/Local/thread.py +0 -0
  33. {webscout-4.6 → webscout-4.7}/webscout/Local/utils.py +0 -0
  34. {webscout-4.6 → webscout-4.7}/webscout/Provider/Andi.py +0 -0
  35. {webscout-4.6 → webscout-4.7}/webscout/Provider/BasedGPT.py +0 -0
  36. {webscout-4.6 → webscout-4.7}/webscout/Provider/Berlin4h.py +0 -0
  37. {webscout-4.6 → webscout-4.7}/webscout/Provider/Blackboxai.py +0 -0
  38. {webscout-4.6 → webscout-4.7}/webscout/Provider/ChatGPTUK.py +0 -0
  39. {webscout-4.6 → webscout-4.7}/webscout/Provider/Cohere.py +0 -0
  40. {webscout-4.6 → webscout-4.7}/webscout/Provider/DARKAI.py +0 -0
  41. {webscout-4.6 → webscout-4.7}/webscout/Provider/Deepinfra.py +0 -0
  42. {webscout-4.6 → webscout-4.7}/webscout/Provider/Deepseek.py +0 -0
  43. {webscout-4.6 → webscout-4.7}/webscout/Provider/FreeGemini.py +0 -0
  44. {webscout-4.6 → webscout-4.7}/webscout/Provider/Gemini.py +0 -0
  45. {webscout-4.6 → webscout-4.7}/webscout/Provider/Geminiflash.py +0 -0
  46. {webscout-4.6 → webscout-4.7}/webscout/Provider/Geminipro.py +0 -0
  47. {webscout-4.6 → webscout-4.7}/webscout/Provider/Groq.py +0 -0
  48. {webscout-4.6 → webscout-4.7}/webscout/Provider/Koboldai.py +0 -0
  49. {webscout-4.6 → webscout-4.7}/webscout/Provider/Leo.py +0 -0
  50. {webscout-4.6 → webscout-4.7}/webscout/Provider/Llama.py +0 -0
  51. {webscout-4.6 → webscout-4.7}/webscout/Provider/Llama3.py +0 -0
  52. {webscout-4.6 → webscout-4.7}/webscout/Provider/OLLAMA.py +0 -0
  53. {webscout-4.6 → webscout-4.7}/webscout/Provider/OpenGPT.py +0 -0
  54. {webscout-4.6 → webscout-4.7}/webscout/Provider/Openai.py +0 -0
  55. {webscout-4.6 → webscout-4.7}/webscout/Provider/Perplexity.py +0 -0
  56. {webscout-4.6 → webscout-4.7}/webscout/Provider/Phind.py +0 -0
  57. {webscout-4.6 → webscout-4.7}/webscout/Provider/PizzaGPT.py +0 -0
  58. {webscout-4.6 → webscout-4.7}/webscout/Provider/Poe.py +0 -0
  59. {webscout-4.6 → webscout-4.7}/webscout/Provider/RUBIKSAI.py +0 -0
  60. {webscout-4.6 → webscout-4.7}/webscout/Provider/Reka.py +0 -0
  61. {webscout-4.6 → webscout-4.7}/webscout/Provider/ThinkAnyAI.py +0 -0
  62. {webscout-4.6 → webscout-4.7}/webscout/Provider/VTLchat.py +0 -0
  63. {webscout-4.6 → webscout-4.7}/webscout/Provider/Xjai.py +0 -0
  64. {webscout-4.6 → webscout-4.7}/webscout/Provider/Yepchat.py +0 -0
  65. {webscout-4.6 → webscout-4.7}/webscout/Provider/Youchat.py +0 -0
  66. {webscout-4.6 → webscout-4.7}/webscout/Provider/koala.py +0 -0
  67. {webscout-4.6 → webscout-4.7}/webscout/YTdownloader.py +0 -0
  68. {webscout-4.6 → webscout-4.7}/webscout/__init__.py +0 -0
  69. {webscout-4.6 → webscout-4.7}/webscout/__main__.py +0 -0
  70. {webscout-4.6 → webscout-4.7}/webscout/async_providers.py +0 -0
  71. {webscout-4.6 → webscout-4.7}/webscout/cli.py +0 -0
  72. {webscout-4.6 → webscout-4.7}/webscout/g4f.py +0 -0
  73. {webscout-4.6 → webscout-4.7}/webscout/models.py +0 -0
  74. {webscout-4.6 → webscout-4.7}/webscout/tempid.py +0 -0
  75. {webscout-4.6 → webscout-4.7}/webscout/transcriber.py +0 -0
  76. {webscout-4.6 → webscout-4.7}/webscout/utils.py +0 -0
  77. {webscout-4.6 → webscout-4.7}/webscout/version.py +0 -0
  78. {webscout-4.6 → webscout-4.7}/webscout/voice.py +0 -0
  79. {webscout-4.6 → webscout-4.7}/webscout/webai.py +0 -0
  80. {webscout-4.6 → webscout-4.7}/webscout/webscout_search.py +0 -0
  81. {webscout-4.6 → webscout-4.7}/webscout/webscout_search_async.py +0 -0
  82. {webscout-4.6 → webscout-4.7}/webscout/websx_search.py +0 -0
  83. {webscout-4.6 → webscout-4.7}/webscout.egg-info/dependency_links.txt +0 -0
  84. {webscout-4.6 → webscout-4.7}/webscout.egg-info/entry_points.txt +0 -0
  85. {webscout-4.6 → webscout-4.7}/webscout.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: webscout
3
- Version: 4.6
3
+ Version: 4.7
4
4
  Summary: Search for anything using Google, DuckDuckGo, brave, qwant, 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
5
  Author: OEvortex
6
6
  Author-email: helpingai5@gmail.com
@@ -62,6 +62,7 @@ Requires-Dist: ollama
62
62
  Requires-Dist: pyfiglet
63
63
  Requires-Dist: yaspin
64
64
  Requires-Dist: pillow
65
+ Requires-Dist: requests_html
65
66
  Provides-Extra: dev
66
67
  Requires-Dist: ruff>=0.1.6; extra == "dev"
67
68
  Requires-Dist: pytest>=7.4.2; extra == "dev"
@@ -1176,55 +1177,36 @@ prompt = "Explain the concept of recursion in simple terms."
1176
1177
  response = perplexity.chat(prompt)
1177
1178
  print(response)
1178
1179
  ```
1179
- ### 8. `OpenGPT` - chat With OPENGPT
1180
+ ### 8. `meta ai` - chat With meta ai
1180
1181
  ```python
1181
- from webscout import OPENGPT
1182
+ from webscout import Meta
1183
+ from rich import print
1184
+ # **For unauthenticated usage**
1185
+ meta_ai = Meta()
1182
1186
 
1183
- opengpt = OPENGPT(is_conversation=True, max_tokens=8000, timeout=30, assistant_id="bca37014-6f97-4f2b-8928-81ea8d478d88")
1184
- while True:
1185
- # Prompt the user for input
1186
- prompt = input("Enter your prompt: ")
1187
- # Send the prompt to the OPENGPT model and print the response
1188
- response_str = opengpt.chat(prompt)
1189
- print(response_str)
1190
- ```
1191
- ```python
1192
- from webscout import OPENGPTv2
1193
-
1194
- # Initialize the bot with all specified settings
1195
- bot = OPENGPTv2(
1196
- generate_new_agents=True, # Set to True to generate new IDs, False to load from file
1197
- assistant_name="My Custom Assistant",
1198
- retrieval_description="Helpful information from my files.",
1199
- agent_system_message="",
1200
- enable_action_server=False, # Assuming you want to disable Action Server by Robocorp
1201
- enable_ddg_search=False, # Enable DuckDuckGo search tool
1202
- enable_arxiv=False, # Assuming you want to disable Arxiv
1203
- enable_press_releases=False, # Assuming you want to disable Press Releases (Kay.ai)
1204
- enable_pubmed=False, # Assuming you want to disable PubMed
1205
- enable_sec_filings=False, # Assuming you want to disable SEC Filings (Kay.ai)
1206
- enable_retrieval=False, # Assuming you want to disable Retrieval
1207
- enable_search_tavily=False, # Assuming you want to disable Search (Tavily)
1208
- enable_search_short_answer_tavily=False, # Assuming you want to disable Search (short answer, Tavily)
1209
- enable_you_com_search=True, # Assuming you want to disable You.com Search
1210
- enable_wikipedia=False, # Enable Wikipedia tool
1211
- is_public=True,
1212
- is_conversation=True,
1213
- max_tokens=800,
1214
- timeout=40,
1215
- filepath="opengpt_conversation_history.txt",
1216
- update_file=True,
1217
- history_offset=10250,
1218
- act=None,
1219
- )
1187
+ # Simple text prompt
1188
+ response = meta_ai.chat("What is the capital of France?")
1189
+ print(response)
1220
1190
 
1221
- # Example interaction loop
1222
- while True:
1223
- prompt = input("You: ")
1224
- if prompt.strip().lower() == 'exit':
1225
- break
1226
- response = bot.chat(prompt)
1227
- print(response)
1191
+ # Streaming response
1192
+ for chunk in meta_ai.chat("Tell me a story about a cat."):
1193
+ print(chunk, end="", flush=True)
1194
+
1195
+ # **For authenticated usage (including image generation)**
1196
+ fb_email = "abcd@abc.com"
1197
+ fb_password = "qwertfdsa"
1198
+ meta_ai = Meta(fb_email=fb_email, fb_password=fb_password)
1199
+
1200
+ # Text prompt with web search
1201
+ response = meta_ai.ask("what is currently happning in bangladesh in aug 2024")
1202
+ print(response["message"]) # Access the text message
1203
+ print("Sources:", response["sources"]) # Access sources (if any)
1204
+
1205
+ # Image generation
1206
+ response = meta_ai.ask("Create an image of a cat wearing a hat.")
1207
+ print(response["message"]) # Print the text message from the response
1208
+ for media in response["media"]:
1209
+ print(media["url"]) # Access image URLs
1228
1210
 
1229
1211
  ```
1230
1212
  ### 9. `KOBOLDAI` -
@@ -1103,55 +1103,36 @@ prompt = "Explain the concept of recursion in simple terms."
1103
1103
  response = perplexity.chat(prompt)
1104
1104
  print(response)
1105
1105
  ```
1106
- ### 8. `OpenGPT` - chat With OPENGPT
1106
+ ### 8. `meta ai` - chat With meta ai
1107
1107
  ```python
1108
- from webscout import OPENGPT
1108
+ from webscout import Meta
1109
+ from rich import print
1110
+ # **For unauthenticated usage**
1111
+ meta_ai = Meta()
1109
1112
 
1110
- opengpt = OPENGPT(is_conversation=True, max_tokens=8000, timeout=30, assistant_id="bca37014-6f97-4f2b-8928-81ea8d478d88")
1111
- while True:
1112
- # Prompt the user for input
1113
- prompt = input("Enter your prompt: ")
1114
- # Send the prompt to the OPENGPT model and print the response
1115
- response_str = opengpt.chat(prompt)
1116
- print(response_str)
1117
- ```
1118
- ```python
1119
- from webscout import OPENGPTv2
1120
-
1121
- # Initialize the bot with all specified settings
1122
- bot = OPENGPTv2(
1123
- generate_new_agents=True, # Set to True to generate new IDs, False to load from file
1124
- assistant_name="My Custom Assistant",
1125
- retrieval_description="Helpful information from my files.",
1126
- agent_system_message="",
1127
- enable_action_server=False, # Assuming you want to disable Action Server by Robocorp
1128
- enable_ddg_search=False, # Enable DuckDuckGo search tool
1129
- enable_arxiv=False, # Assuming you want to disable Arxiv
1130
- enable_press_releases=False, # Assuming you want to disable Press Releases (Kay.ai)
1131
- enable_pubmed=False, # Assuming you want to disable PubMed
1132
- enable_sec_filings=False, # Assuming you want to disable SEC Filings (Kay.ai)
1133
- enable_retrieval=False, # Assuming you want to disable Retrieval
1134
- enable_search_tavily=False, # Assuming you want to disable Search (Tavily)
1135
- enable_search_short_answer_tavily=False, # Assuming you want to disable Search (short answer, Tavily)
1136
- enable_you_com_search=True, # Assuming you want to disable You.com Search
1137
- enable_wikipedia=False, # Enable Wikipedia tool
1138
- is_public=True,
1139
- is_conversation=True,
1140
- max_tokens=800,
1141
- timeout=40,
1142
- filepath="opengpt_conversation_history.txt",
1143
- update_file=True,
1144
- history_offset=10250,
1145
- act=None,
1146
- )
1113
+ # Simple text prompt
1114
+ response = meta_ai.chat("What is the capital of France?")
1115
+ print(response)
1147
1116
 
1148
- # Example interaction loop
1149
- while True:
1150
- prompt = input("You: ")
1151
- if prompt.strip().lower() == 'exit':
1152
- break
1153
- response = bot.chat(prompt)
1154
- print(response)
1117
+ # Streaming response
1118
+ for chunk in meta_ai.chat("Tell me a story about a cat."):
1119
+ print(chunk, end="", flush=True)
1120
+
1121
+ # **For authenticated usage (including image generation)**
1122
+ fb_email = "abcd@abc.com"
1123
+ fb_password = "qwertfdsa"
1124
+ meta_ai = Meta(fb_email=fb_email, fb_password=fb_password)
1125
+
1126
+ # Text prompt with web search
1127
+ response = meta_ai.ask("what is currently happning in bangladesh in aug 2024")
1128
+ print(response["message"]) # Access the text message
1129
+ print("Sources:", response["sources"]) # Access sources (if any)
1130
+
1131
+ # Image generation
1132
+ response = meta_ai.ask("Create an image of a cat wearing a hat.")
1133
+ print(response["message"]) # Print the text message from the response
1134
+ for media in response["media"]:
1135
+ print(media["url"]) # Access image URLs
1155
1136
 
1156
1137
  ```
1157
1138
  ### 9. `KOBOLDAI` -
@@ -5,7 +5,7 @@ with open("README.md", encoding="utf-8") as f:
5
5
 
6
6
  setup(
7
7
  name="webscout",
8
- version="4.6",
8
+ version="4.7",
9
9
  description="Search for anything using Google, DuckDuckGo, brave, qwant, 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",
10
10
  long_description=README,
11
11
  long_description_content_type="text/markdown",
@@ -66,6 +66,7 @@ setup(
66
66
  "pyfiglet",
67
67
  "yaspin",
68
68
  "pillow",
69
+ "requests_html"
69
70
  ],
70
71
  entry_points={
71
72
  "console_scripts": [
@@ -44,6 +44,8 @@ from .Llama3 import *
44
44
  from .DARKAI import *
45
45
  from .koala import *
46
46
  from .RUBIKSAI import *
47
+ from .meta import *
48
+
47
49
  __all__ = [
48
50
  'ThinkAnyAI',
49
51
  'Xjai',
@@ -90,5 +92,6 @@ __all__ = [
90
92
  'LLAMA3',
91
93
  'DARKAI',
92
94
  'KOALA',
93
- 'RUBIKSAI'
95
+ 'RUBIKSAI',
96
+ 'Meta',
94
97
  ]