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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file whut-0.7.2.tar.gz.

File metadata

  • Download URL: whut-0.7.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for whut-0.7.2.tar.gz
Algorithm Hash digest
SHA256 c9b957de0ea58653a06c04d66b46db4dc2aaae7999980003dee2ad8c31c535a1
MD5 6d83e578b024c100ca9032b0b882f314
BLAKE2b-256 887763aa40dd47df60f6f14c459661a25915c9165dda15c87f2561a34d98c42d

See more details on using hashes here.

File details

Details for the file whut-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: whut-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for whut-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 44aae67097fa01a936ec81935a0f431cd3a2a3ea69c15b2b2f5e4bb0a6a07c80
MD5 9dd46cd385b975ace53cd6e395f0bfad
BLAKE2b-256 45653e0553b9e0f7f4c9f04570e47cf0a7189d9d06ac4d74a6deb1a71fad8cdb

See more details on using hashes here.

Supported by

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