Skip to main content

A CLI tool to instantly search the internet using Google Generative AI in a decluttered manner.

Project description

Whut

Whut is a versatile command-line tool that leverages Google Generative AI to search the internet and provide decluttered answers directly in your terminal. With Whut, you can configure your own API key, customize search prompts, and specify response lengths.

Features

  • Configuration Mode: Set your own API key for personalized usage.
  • Default Mode: Get decluttered answers using a standard prompt.
  • Custom Mode: Pass queries directly to the API without modification.
  • Limited Length Mode: Specify the number of lines for the answer.

Installation

You can install Whut from PyPI:

pip install whut

Info here: https://pypi.org/project/whut/

Usage

Basic Search

To perform a basic search, simply type:

whut "your search query"

example:

whut "Mahatma Gandhi"

Configuration Mode

To set your own API key, use the -set flag:

whut -set

Custom Mode

To pass the query directly to the API, use the -c flag:

whut -c "your search query"

Example:

whut -c "Sam Altman"

Limited Length Mode

To get an answer with a specific number of lines, use the -c flag along with the -l flag:

whut -c -l <number> "your search query"
Example:

whut -c -l 5 "Sam Altman"

Custom Prompt

You can customize the search prompt by using the -C or -c option followed by a colon (:) and then your query:

whut -C "Please provide detailed information about: Your search query"

Example:

whut -C "Tell me in detail about: Sam Altman"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whut-0.7.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

whut-0.7.2-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page