A lightweight OpenAI-powered Bash actuator.
Project description
BHMsh
A lightweight OpenAI-powered Bash actuator.
Installation
python3 -m pip install --upgrade bhmsh
BHMsh requires Python 3.8 or greater and a Unix-based OS (macOS or Linux).
With that being said, there are currently build issues with the latest Python 3.12: use 3.8 - 3.11.
Python 3 Setup (Supplementary)
Download an acceptable version of Python 3 here.
To verify:
python3 --version
If you don't see the correct version after running this, you may need to consult the interent on Python installation locations for your specific OS.
And then you'll need to update your PATH
environment variable accordingly.
Once you have an acceptable version of Python 3, doing the following doesn't hurt:
python3 -m pip install --upgrade pip setuptools wheel
Usage
Most basic execution explicitly using your OpenAI API key:
bhmsh -t <your-openai-api-key>
You can also execute BHMsh in the following manner:
bhmsh
This will check your current environment for an exported variable OPENAI_API_KEY
containing your OpenAI API key.
If you want to see a log of BHMsh's interation with GPTsh:
bhmsh --log
This will create a tail-able log file (tail -f <path-to-log>
in a concurrent terminal).
Its path is given upon execution.
For full execution parameter details:
bhmsh --help
Major runtime commands
Command | Description |
---|---|
(c)lear | Starts a new ChatGPT session |
(q)uit, (e)xit | Quit BHMsh |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bhmsh-1.1.0.tar.gz
.
File metadata
- Download URL: bhmsh-1.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15d8b8f07d3c59f353c8613214a99b6b3779b8db889c2f4656d8a5cf4c7c66a6 |
|
MD5 | d9ee11e8ecb63fb04a4a538fbb356060 |
|
BLAKE2b-256 | 45200014965113821353d255ee02542b6d65c1a478f33efbe19a22eec4518a4d |
File details
Details for the file bhmsh-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: bhmsh-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6d3f341d264a5df4c607fb8dadd1721858a6ac4089093bbb7d9976401649bd4 |
|
MD5 | a00df6102246f5d85e848d7f597f0f53 |
|
BLAKE2b-256 | f523429c4cb9646c65c9ed7fb09476e411ef33ca0675ee51a8c1348c3ef805ac |