Skip to main content

A command-line tool to interact with LLMs for bash and Linux questions

Project description

drawing

About

BASHIMU is a simple bash script to interact with OpenAI's ChatGPT models. It allows you to ask a question in the command line and get a one-liner response as a result.

Installation

Method 1: Using pip (Recommended)

pip install bashimu

Or install from source:

git clone https://github.com/wiktorjl/bashimu.git
cd bashimu
pip install .

Method 2: Using the deployment script

curl -s https://raw.githubusercontent.com/wiktorjl/bashimu/refs/heads/main/deploy.sh | sh

Method 3: Manual setup

Clone this repository and run bashimu_setup.sh script. It will set up the following variables:

$OPENAI_API_KEY - your private key
$OPENAI_MODEL_NAME - the default OpenAI model to be used

It will also ask you where to deploy the script, adjust the PATH accordingly, and set up ? as an alias for bashimu.sh. Please view the script's source code before you run it so you know what it is doing.

Usage

Bash Script

Executing a query: ? get current time

Executing the last suggested command: ? !

Python TUI (Terminal User Interface)

Interactive mode:

bashimu-tui

Non-interactive mode (new):

bashimu-tui "what is the current directory command"
bashimu-tui --provider openai "how to find files by name"
bashimu-tui --persona coding_mentor "explain git rebase"

Demo:

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

bashimu-1.2.0.tar.gz (390.7 kB view details)

Uploaded Source

Built Distribution

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

bashimu-1.2.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file bashimu-1.2.0.tar.gz.

File metadata

  • Download URL: bashimu-1.2.0.tar.gz
  • Upload date:
  • Size: 390.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for bashimu-1.2.0.tar.gz
Algorithm Hash digest
SHA256 ab1512cb61b1d09ab5407c40d2b25a2a1f37f956cff46763906f9083f9301635
MD5 36bdc989b74ca3ff901fd97b33f24f54
BLAKE2b-256 386e8c345d01c834a19ba7857047666954dcccc6777d57ce814ef1d1779cddf8

See more details on using hashes here.

File details

Details for the file bashimu-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: bashimu-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for bashimu-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c491dd67a7070e7386f3aee5b987b91ea1cd8fdbf25bc5aa8ac714173c6a6c4
MD5 a0726fb8c268c430d6346c3f7164ef54
BLAKE2b-256 9384c11d5259dd56aac862938e690b1b3a8f2f85e3264cf4c06d6911fb5cd89f

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