webscout 1.1.5__py3-none-any.whl → 1.1.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.

@@ -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`
@@ -0,0 +1,20 @@
1
+ webscout/AI.py,sha256=CwUCeGnNRL9STd5bAZSyIiLysorBMu065HrkY8UCzAQ,49618
2
+ webscout/AIbase.py,sha256=jBqTcFRq3IqDKoKTkciy4HaurrL-Iw4SAQIbtkLY4UU,2274
3
+ webscout/AIutel.py,sha256=Su41bjO5rVo7JlICs8sKvRYHX0wcxzy-73hClCTWxyw,23470
4
+ webscout/HelpingAI.py,sha256=YeZw0zYVHMcBFFPNdd3_Ghpm9ebt_EScQjHO_IIs4lg,8103
5
+ webscout/LLM.py,sha256=XByJPiATLA_57FBWKw18Xx_PGRCPOj-GJE96aQH1k2Y,3309
6
+ webscout/__init__.py,sha256=vHJGZexYIaWDTHfMimqA7enct9b7zPDf6jLsS7NDBiA,536
7
+ webscout/__main__.py,sha256=ZtTRgsRjUi2JOvYFLF1ZCh55Sdoz94I-BS-TlJC7WDU,126
8
+ webscout/cli.py,sha256=AI0irt6FtZVWiCEyrDOY78OrXBoQT8pXmct5KN_vPhc,17295
9
+ webscout/exceptions.py,sha256=7u52Mt5iyEUCZvaZuEYwQVV8HL8IdZBv1r5s5Ss_xU0,75
10
+ webscout/models.py,sha256=5iQIdtedT18YuTZ3npoG7kLMwcrKwhQ7928dl_7qZW0,692
11
+ webscout/utils.py,sha256=-YKF2Qw1tYRvPSZpJur7b2lHiXOFDY4iRQryxNxQ7co,3025
12
+ webscout/version.py,sha256=gA8f8N2jHLqj_ji0TxZUT14uhd1nNP2PTHuPHDLPkOM,25
13
+ webscout/webscout_search.py,sha256=WpA64xu1FZfkD6Ry3y0-w1eV0-gVeZjy8wmQWX4Mz2c,2320
14
+ webscout/webscout_search_async.py,sha256=Q5-1NuYhr756aMFZuNpUlUZkz9PifuV8tyDWaTuYrn8,38135
15
+ webscout-1.1.7.dist-info/LICENSE.md,sha256=mRVwJuT4SXC5O93BFdsfWBjlXjGn2Np90Zm5SocUzM0,3150
16
+ webscout-1.1.7.dist-info/METADATA,sha256=Hk4LmPsKmBMpV2PcTX-_uKze_dUd8GU0xnZOltpXysM,24367
17
+ webscout-1.1.7.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
18
+ webscout-1.1.7.dist-info/entry_points.txt,sha256=8-93eRslYrzTHs5E-6yFRJrve00C9q-SkXJD113jzRY,197
19
+ webscout-1.1.7.dist-info/top_level.txt,sha256=nYIw7OKBQDr_Z33IzZUKidRD3zQEo8jOJYkMVMeN334,9
20
+ webscout-1.1.7.dist-info/RECORD,,
@@ -1,18 +0,0 @@
1
- webscout/AI.py,sha256=rbfxwyJZvccGx21PohvBFHbDhYUmeynNdecBuTZdAuE,13930
2
- webscout/HelpingAI.py,sha256=vCMTqMXBgPf7zJmKMO2P8GXwBF1pS8aoJ0sdXAwdImo,7911
3
- webscout/LLM.py,sha256=YF_j7_n87Ul2xrQ3C63YjQod8QbSwk4Zje6rhVktcxA,3242
4
- webscout/__init__.py,sha256=vHJGZexYIaWDTHfMimqA7enct9b7zPDf6jLsS7NDBiA,536
5
- webscout/__main__.py,sha256=ZtTRgsRjUi2JOvYFLF1ZCh55Sdoz94I-BS-TlJC7WDU,126
6
- webscout/cli.py,sha256=AI0irt6FtZVWiCEyrDOY78OrXBoQT8pXmct5KN_vPhc,17295
7
- webscout/exceptions.py,sha256=7u52Mt5iyEUCZvaZuEYwQVV8HL8IdZBv1r5s5Ss_xU0,75
8
- webscout/models.py,sha256=5iQIdtedT18YuTZ3npoG7kLMwcrKwhQ7928dl_7qZW0,692
9
- webscout/utils.py,sha256=M2ocDpYOVd9lTZA3VGdK_p80Xsr-VPeAoUUCFaMWCqk,1610
10
- webscout/version.py,sha256=ylSQLbUxGL4OhmP8GlO-f9h17gczm_-qzp8GIWP1eiI,25
11
- webscout/webscout_search.py,sha256=WpA64xu1FZfkD6Ry3y0-w1eV0-gVeZjy8wmQWX4Mz2c,2320
12
- webscout/webscout_search_async.py,sha256=Q5-1NuYhr756aMFZuNpUlUZkz9PifuV8tyDWaTuYrn8,38135
13
- webscout-1.1.5.dist-info/LICENSE.md,sha256=mRVwJuT4SXC5O93BFdsfWBjlXjGn2Np90Zm5SocUzM0,3150
14
- webscout-1.1.5.dist-info/METADATA,sha256=MeIvNacjZ7z5-xA4nYN_CHTgll1QRIuklo3aDjuQTd0,21903
15
- webscout-1.1.5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
16
- webscout-1.1.5.dist-info/entry_points.txt,sha256=8-93eRslYrzTHs5E-6yFRJrve00C9q-SkXJD113jzRY,197
17
- webscout-1.1.5.dist-info/top_level.txt,sha256=nYIw7OKBQDr_Z33IzZUKidRD3zQEo8jOJYkMVMeN334,9
18
- webscout-1.1.5.dist-info/RECORD,,