webscout 1.1.5__tar.gz → 1.1.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 (28) hide show
  1. {webscout-1.1.5/webscout.egg-info → webscout-1.1.7}/PKG-INFO +92 -17
  2. {webscout-1.1.5 → webscout-1.1.7}/README.md +87 -15
  3. {webscout-1.1.5 → webscout-1.1.7}/setup.py +5 -2
  4. webscout-1.1.7/webscout/AI.py +1241 -0
  5. webscout-1.1.7/webscout/AIbase.py +70 -0
  6. webscout-1.1.7/webscout/AIutel.py +655 -0
  7. {webscout-1.1.5 → webscout-1.1.7}/webscout/HelpingAI.py +192 -192
  8. {webscout-1.1.5 → webscout-1.1.7}/webscout/LLM.py +67 -67
  9. webscout-1.1.7/webscout/utils.py +89 -0
  10. webscout-1.1.7/webscout/version.py +2 -0
  11. {webscout-1.1.5 → webscout-1.1.7/webscout.egg-info}/PKG-INFO +92 -17
  12. {webscout-1.1.5 → webscout-1.1.7}/webscout.egg-info/SOURCES.txt +2 -0
  13. {webscout-1.1.5 → webscout-1.1.7}/webscout.egg-info/requires.txt +1 -0
  14. webscout-1.1.5/webscout/AI.py +0 -343
  15. webscout-1.1.5/webscout/utils.py +0 -48
  16. webscout-1.1.5/webscout/version.py +0 -2
  17. {webscout-1.1.5 → webscout-1.1.7}/LICENSE.md +0 -0
  18. {webscout-1.1.5 → webscout-1.1.7}/setup.cfg +0 -0
  19. {webscout-1.1.5 → webscout-1.1.7}/webscout/__init__.py +0 -0
  20. {webscout-1.1.5 → webscout-1.1.7}/webscout/__main__.py +0 -0
  21. {webscout-1.1.5 → webscout-1.1.7}/webscout/cli.py +0 -0
  22. {webscout-1.1.5 → webscout-1.1.7}/webscout/exceptions.py +0 -0
  23. {webscout-1.1.5 → webscout-1.1.7}/webscout/models.py +0 -0
  24. {webscout-1.1.5 → webscout-1.1.7}/webscout/webscout_search.py +0 -0
  25. {webscout-1.1.5 → webscout-1.1.7}/webscout/webscout_search_async.py +0 -0
  26. {webscout-1.1.5 → webscout-1.1.7}/webscout.egg-info/dependency_links.txt +0 -0
  27. {webscout-1.1.5 → webscout-1.1.7}/webscout.egg-info/entry_points.txt +0 -0
  28. {webscout-1.1.5 → webscout-1.1.7}/webscout.egg-info/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: webscout
3
- Version: 1.1.5
4
- Summary: Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com, yep.com, phind.com and you.com Also containes AI models
3
+ Version: 1.1.7
4
+ Summary: Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com, yep.com, phind.com, you.com, etc Also containes AI models
5
5
  Author: OEvortex
6
6
  Author-email: helpingai5@gmail.com
7
7
  License: HelpingAI Simplified Universal License
@@ -17,6 +17,8 @@ Classifier: Programming Language :: Python :: 3
17
17
  Classifier: Programming Language :: Python :: 3.8
18
18
  Classifier: Programming Language :: Python :: 3.9
19
19
  Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
20
22
  Classifier: Programming Language :: Python :: Implementation :: CPython
21
23
  Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
22
24
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
@@ -34,15 +36,25 @@ Requires-Dist: halo>=0.0.31
34
36
  Requires-Dist: g4f>=0.2.2.3
35
37
  Requires-Dist: rich
36
38
  Requires-Dist: python-dotenv
39
+ Requires-Dist: Helpingai-T2
37
40
  Provides-Extra: dev
38
41
  Requires-Dist: ruff>=0.1.6; extra == "dev"
39
42
  Requires-Dist: pytest>=7.4.2; extra == "dev"
40
43
 
41
- Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com, yep.com, phind.com and you.com
44
+ # webscout
45
+ <p align="center">
46
+
47
+ <a href="#"><img alt="Python version" src="https://img.shields.io/pypi/pyversions/webscout"/></a>
48
+ <a href="https://pepy.tech/project/webscout"><img alt="Downloads" src="https://static.pepy.tech/badge/webscout"></a>
49
+
50
+ Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com, yep.com, phind.com, you.com, etc also contains AI models
42
51
  Also containes AI models that you can use
43
52
  **⚠️ Warning: use AsyncWEBS in asynchronous code**
44
53
 
45
54
  ## Table of Contents
55
+ - [webscout](#webscout)
56
+ - [Table of Contents](#table-of-contents)
57
+ - [Install](#install)
46
58
  - [Webscout API Server](#webscout-api-server)
47
59
  - [Installation](#installation)
48
60
  - [Usage](#usage)
@@ -80,6 +92,9 @@ Also containes AI models that you can use
80
92
  - [4. `Gemini` - search with google gemini](#4-gemini---search-with-google-gemini)
81
93
  - [usage of image generator from Webscout.AI](#usage-of-image-generator-from-webscoutai)
82
94
  - [5. `Prodia` - make image using prodia](#5-prodia---make-image-using-prodia)
95
+ - [6. `BlackBox` - Search/chat With BlackBox](#6-blackbox---searchchat-with-blackbox)
96
+ - [7. `PERPLEXITY` - Search With PERPLEXITY](#7-perplexity---search-with-perplexity)
97
+ - [8. `OpenGPT` - chat With OPENGPT](#8-opengpt---chat-with-opengpt)
83
98
  - [usage of special .LLM file from webscout (webscout.LLM)](#usage-of-special-llm-file-from-webscout-webscoutllm)
84
99
  - [`LLM`](#llm)
85
100
 
@@ -252,17 +267,19 @@ python -m webscout --help
252
267
  | python -m webscout version | A command-line interface command that prints and returns the version of the program. |
253
268
  | python -m webscout videos -k Text | CLI function to perform a videos search using DuckDuckGo API. |
254
269
 
255
- ## CLI version of webscout.AI
256
270
 
257
271
 
258
- | Command | Description |
259
- |--------------------------------------------|--------------------------------------------------------------------------------------------------------|
260
- | `python -m webscout.AI phindsearch --query "your_query_here"` | CLI function to perform a search query using Webscout.AI's Phindsearch feature. |
261
- | `python -m webscout.AI yepchat --message "your_message_here"` | CLI function to send a message using Webscout.AI's Yepchat feature. |
262
- | `python -m webscout.AI youchat --prompt "your_prompt_here"` | CLI function to generate a response based on a prompt using Webscout.AI's Youchat feature. |
263
- | `python -m webscout.AI gemini --message "tell me about gemma 7b"` | CLI function to get information about a specific topic using Webscout.AI's Gemini feature. |
264
- | `python -m webscout.AI prodia --prompt "car"` | CLI function to generate content related to a prompt using Webscout.AI's Prodia feature. |
265
-
272
+ ## CLI version of webscout.AI
273
+ | Command | Description |
274
+ |-----------------------------------------------|--------------------------------------------------------------------------------------------------------|
275
+ | `python -m webscout.AI phindsearch --prompt "your search query"` | CLI function to perform a search query using Webscout.AI's Phindsearch feature. |
276
+ | `python -m webscout.AI yepchat --message "your_message_here"` | CLI function to send a message using Webscout.AI's Yepchat feature. |
277
+ | `python -m webscout.AI youchat --prompt "your_prompt_here"` | CLI function to generate a response based on a prompt using Webscout.AI's Youchat feature. |
278
+ | `python -m webscout.AI gemini --message "tell me about gemma 7b"` | CLI function to get information about a specific topic using Webscout.AI's Gemini feature. |
279
+ | `python -m webscout.AI prodia --prompt "car"` | CLI function to generate content related to a prompt using Webscout.AI's Prodia feature. |
280
+ | `python -m webscout.AI blackboxai --prompt "Your prompt here"` | CLI function to perform a search using Webscout.AI's Blackbox search feature. |
281
+ | `python -m webscout.AI perplexity --prompt "Your prompt here"` | CLI function to perform a search using Webscout.AI's PERPLEXITY feature. |
282
+ | `python -m webscout.AI opengpt --prompt "Your prompt here"` | CLI function to perform a search using Webscout.AI's OPENGPT feature. |
266
283
 
267
284
 
268
285
  ## CLI to use LLM
@@ -543,16 +560,22 @@ with WEBS() as WEBS:
543
560
  ## usage of webscout.AI
544
561
 
545
562
  ### 1. `PhindSearch` - Search using Phind.com
546
- Thanks to Empyros for PhindSearch function
563
+
547
564
  ```python
548
565
  from webscout.AI import PhindSearch
549
566
 
550
- query = 'Webscout pypi'
567
+ # Create an instance of the PHIND class
568
+ ph = PhindSearch()
569
+
570
+ # Define a prompt to send to the AI
571
+ prompt = "write a essay on phind"
551
572
 
552
- # Create an instance of WEBSAI with the query
553
- WEBSAI = PhindSearch(query)
573
+ # Use the 'ask' method to send the prompt and receive a response
574
+ response = ph.ask(prompt)
554
575
 
555
- WEBSAI.search()
576
+ # Extract and print the message from the response
577
+ message = ph.get_message(response)
578
+ print(message)
556
579
  ```
557
580
  ### 2. `YepChat` - Chat with mistral 8x7b powered by yepchat
558
581
  Thanks To Divyansh Shukla for This code
@@ -622,6 +645,58 @@ prompt = "A beautiful sunset over the ocean"
622
645
  # Use the prodia_cli method to generate an image based on the prompt
623
646
  Prodia.prodia_cli(prompt)
624
647
  ```
648
+ ### 6. `BlackBox` - Search/chat With BlackBox
649
+ ```python
650
+ from webscout.AI import BLACKBOXAI
651
+ from rich import print
652
+
653
+ ai = BLACKBOXAI(
654
+ is_conversation=True,
655
+ max_tokens=800,
656
+ timeout=30,
657
+ intro=None,
658
+ filepath=None,
659
+ update_file=True,
660
+ proxies={},
661
+ history_offset=10250,
662
+ act=None,
663
+ model=None # You can specify a model if needed
664
+ )
665
+
666
+ # Define a prompt to send to the AI
667
+ prompt = "Tell me about india"
668
+
669
+ # Use the 'ask' method to send the prompt and receive a response
670
+ response = ai.ask(prompt)
671
+
672
+ # Extract the text from the response
673
+ response_text = ai.get_message(response)
674
+
675
+ # Print the response text
676
+ print(response_text)
677
+ ```
678
+ ### 7. `PERPLEXITY` - Search With PERPLEXITY
679
+ ```python
680
+ from webscout.AI import PERPLEXITY
681
+ # Create an instance of the PERPLEXITY class
682
+ perplexity = PERPLEXITY()
683
+
684
+ # Example usage:
685
+ prompt = "Explain the concept of recursion in simple terms."
686
+ response = perplexity.chat(prompt)
687
+ print(response)
688
+ ```
689
+ ### 8. `OpenGPT` - chat With OPENGPT
690
+ ```python
691
+ from webscout.AI import OPENGPT
692
+
693
+ opengpt = OPENGPT(is_conversation=True, max_tokens=8000, timeout=30)
694
+ # This example sends a simple greeting and prints the response
695
+ prompt = "tell me about india"
696
+ response_str = opengpt.chat(prompt)
697
+ print(response_str)
698
+ ```
699
+
625
700
  ## usage of special .LLM file from webscout (webscout.LLM)
626
701
 
627
702
  ### `LLM`
@@ -1,8 +1,17 @@
1
- Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com, yep.com, phind.com and you.com
1
+ # webscout
2
+ <p align="center">
3
+
4
+ <a href="#"><img alt="Python version" src="https://img.shields.io/pypi/pyversions/webscout"/></a>
5
+ <a href="https://pepy.tech/project/webscout"><img alt="Downloads" src="https://static.pepy.tech/badge/webscout"></a>
6
+
7
+ Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com, yep.com, phind.com, you.com, etc also contains AI models
2
8
  Also containes AI models that you can use
3
9
  **⚠️ Warning: use AsyncWEBS in asynchronous code**
4
10
 
5
11
  ## Table of Contents
12
+ - [webscout](#webscout)
13
+ - [Table of Contents](#table-of-contents)
14
+ - [Install](#install)
6
15
  - [Webscout API Server](#webscout-api-server)
7
16
  - [Installation](#installation)
8
17
  - [Usage](#usage)
@@ -40,6 +49,9 @@ Also containes AI models that you can use
40
49
  - [4. `Gemini` - search with google gemini](#4-gemini---search-with-google-gemini)
41
50
  - [usage of image generator from Webscout.AI](#usage-of-image-generator-from-webscoutai)
42
51
  - [5. `Prodia` - make image using prodia](#5-prodia---make-image-using-prodia)
52
+ - [6. `BlackBox` - Search/chat With BlackBox](#6-blackbox---searchchat-with-blackbox)
53
+ - [7. `PERPLEXITY` - Search With PERPLEXITY](#7-perplexity---search-with-perplexity)
54
+ - [8. `OpenGPT` - chat With OPENGPT](#8-opengpt---chat-with-opengpt)
43
55
  - [usage of special .LLM file from webscout (webscout.LLM)](#usage-of-special-llm-file-from-webscout-webscoutllm)
44
56
  - [`LLM`](#llm)
45
57
 
@@ -212,17 +224,19 @@ python -m webscout --help
212
224
  | python -m webscout version | A command-line interface command that prints and returns the version of the program. |
213
225
  | python -m webscout videos -k Text | CLI function to perform a videos search using DuckDuckGo API. |
214
226
 
215
- ## CLI version of webscout.AI
216
227
 
217
228
 
218
- | Command | Description |
219
- |--------------------------------------------|--------------------------------------------------------------------------------------------------------|
220
- | `python -m webscout.AI phindsearch --query "your_query_here"` | CLI function to perform a search query using Webscout.AI's Phindsearch feature. |
221
- | `python -m webscout.AI yepchat --message "your_message_here"` | CLI function to send a message using Webscout.AI's Yepchat feature. |
222
- | `python -m webscout.AI youchat --prompt "your_prompt_here"` | CLI function to generate a response based on a prompt using Webscout.AI's Youchat feature. |
223
- | `python -m webscout.AI gemini --message "tell me about gemma 7b"` | CLI function to get information about a specific topic using Webscout.AI's Gemini feature. |
224
- | `python -m webscout.AI prodia --prompt "car"` | CLI function to generate content related to a prompt using Webscout.AI's Prodia feature. |
225
-
229
+ ## CLI version of webscout.AI
230
+ | Command | Description |
231
+ |-----------------------------------------------|--------------------------------------------------------------------------------------------------------|
232
+ | `python -m webscout.AI phindsearch --prompt "your search query"` | CLI function to perform a search query using Webscout.AI's Phindsearch feature. |
233
+ | `python -m webscout.AI yepchat --message "your_message_here"` | CLI function to send a message using Webscout.AI's Yepchat feature. |
234
+ | `python -m webscout.AI youchat --prompt "your_prompt_here"` | CLI function to generate a response based on a prompt using Webscout.AI's Youchat feature. |
235
+ | `python -m webscout.AI gemini --message "tell me about gemma 7b"` | CLI function to get information about a specific topic using Webscout.AI's Gemini feature. |
236
+ | `python -m webscout.AI prodia --prompt "car"` | CLI function to generate content related to a prompt using Webscout.AI's Prodia feature. |
237
+ | `python -m webscout.AI blackboxai --prompt "Your prompt here"` | CLI function to perform a search using Webscout.AI's Blackbox search feature. |
238
+ | `python -m webscout.AI perplexity --prompt "Your prompt here"` | CLI function to perform a search using Webscout.AI's PERPLEXITY feature. |
239
+ | `python -m webscout.AI opengpt --prompt "Your prompt here"` | CLI function to perform a search using Webscout.AI's OPENGPT feature. |
226
240
 
227
241
 
228
242
  ## CLI to use LLM
@@ -503,16 +517,22 @@ with WEBS() as WEBS:
503
517
  ## usage of webscout.AI
504
518
 
505
519
  ### 1. `PhindSearch` - Search using Phind.com
506
- Thanks to Empyros for PhindSearch function
520
+
507
521
  ```python
508
522
  from webscout.AI import PhindSearch
509
523
 
510
- query = 'Webscout pypi'
524
+ # Create an instance of the PHIND class
525
+ ph = PhindSearch()
526
+
527
+ # Define a prompt to send to the AI
528
+ prompt = "write a essay on phind"
511
529
 
512
- # Create an instance of WEBSAI with the query
513
- WEBSAI = PhindSearch(query)
530
+ # Use the 'ask' method to send the prompt and receive a response
531
+ response = ph.ask(prompt)
514
532
 
515
- WEBSAI.search()
533
+ # Extract and print the message from the response
534
+ message = ph.get_message(response)
535
+ print(message)
516
536
  ```
517
537
  ### 2. `YepChat` - Chat with mistral 8x7b powered by yepchat
518
538
  Thanks To Divyansh Shukla for This code
@@ -582,6 +602,58 @@ prompt = "A beautiful sunset over the ocean"
582
602
  # Use the prodia_cli method to generate an image based on the prompt
583
603
  Prodia.prodia_cli(prompt)
584
604
  ```
605
+ ### 6. `BlackBox` - Search/chat With BlackBox
606
+ ```python
607
+ from webscout.AI import BLACKBOXAI
608
+ from rich import print
609
+
610
+ ai = BLACKBOXAI(
611
+ is_conversation=True,
612
+ max_tokens=800,
613
+ timeout=30,
614
+ intro=None,
615
+ filepath=None,
616
+ update_file=True,
617
+ proxies={},
618
+ history_offset=10250,
619
+ act=None,
620
+ model=None # You can specify a model if needed
621
+ )
622
+
623
+ # Define a prompt to send to the AI
624
+ prompt = "Tell me about india"
625
+
626
+ # Use the 'ask' method to send the prompt and receive a response
627
+ response = ai.ask(prompt)
628
+
629
+ # Extract the text from the response
630
+ response_text = ai.get_message(response)
631
+
632
+ # Print the response text
633
+ print(response_text)
634
+ ```
635
+ ### 7. `PERPLEXITY` - Search With PERPLEXITY
636
+ ```python
637
+ from webscout.AI import PERPLEXITY
638
+ # Create an instance of the PERPLEXITY class
639
+ perplexity = PERPLEXITY()
640
+
641
+ # Example usage:
642
+ prompt = "Explain the concept of recursion in simple terms."
643
+ response = perplexity.chat(prompt)
644
+ print(response)
645
+ ```
646
+ ### 8. `OpenGPT` - chat With OPENGPT
647
+ ```python
648
+ from webscout.AI import OPENGPT
649
+
650
+ opengpt = OPENGPT(is_conversation=True, max_tokens=8000, timeout=30)
651
+ # This example sends a simple greeting and prints the response
652
+ prompt = "tell me about india"
653
+ response_str = opengpt.chat(prompt)
654
+ print(response_str)
655
+ ```
656
+
585
657
  ## usage of special .LLM file from webscout (webscout.LLM)
586
658
 
587
659
  ### `LLM`
@@ -9,8 +9,8 @@ with open("README.md", encoding="utf-8") as f:
9
9
 
10
10
  setup(
11
11
  name="webscout",
12
- version="1.1.5", # Use the version variable from the version.py file
13
- description="Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com, yep.com, phind.com and you.com Also containes AI models",
12
+ version="1.1.7", # Use the version variable from the version.py file
13
+ description="Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com, yep.com, phind.com, you.com, etc Also containes AI models",
14
14
  long_description=README,
15
15
  long_description_content_type="text/markdown",
16
16
  author="OEvortex",
@@ -25,6 +25,8 @@ setup(
25
25
  'Programming Language :: Python :: 3.8',
26
26
  'Programming Language :: Python :: 3.9',
27
27
  'Programming Language :: Python :: 3.10',
28
+ 'Programming Language :: Python :: 3.11',
29
+ 'Programming Language :: Python :: 3.12',
28
30
  'Programming Language :: Python :: Implementation :: CPython',
29
31
  'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
30
32
  'Topic :: Software Development :: Libraries :: Python Modules',
@@ -42,6 +44,7 @@ setup(
42
44
  "g4f>=0.2.2.3",
43
45
  "rich",
44
46
  "python-dotenv",
47
+ "Helpingai-T2",
45
48
  ],
46
49
  entry_points={
47
50
  "console_scripts": [