Metadata-Version: 2.1
Name: terminalgpt-pro
Version: 0.1.17
Summary: AI chat assistant in your terminal powered by OpenAI ChatGPT models.
Author: Adam Yodinsky, Shabernev Fedor
Author-email: quantumstack01@gmail.com
Keywords: ai,chat,terminal,openai,gpt-3,gpt-4,gpt4,gpt3,chatGPT,assistant,gpt-3.5,gpt-3.5-turbo,terminalGPT-Pro
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openai>=0.27.6
Requires-Dist: tiktoken<0.6,>=0.2
Requires-Dist: colorama>=0.4.6
Requires-Dist: cryptography<42.0.0,>=40.0.2
Requires-Dist: click>=8.1.3
Requires-Dist: prompt-toolkit>=3.0.38
Requires-Dist: yaspin>=2.3.0
Requires-Dist: rich>=13.3.5
Requires-Dist: isort>=5.12.0
Requires-Dist: pytest>=7.3.1
Requires-Dist: pylint>=3.0.2
Provides-Extra: dev
Requires-Dist: black>=23.1.0; extra == "dev"
Requires-Dist: pytest>=7.2.2; extra == "dev"
Requires-Dist: pylint>=3.0.2; extra == "dev"
Requires-Dist: pexpect>=4.8.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"

# [TerminalGPT-Pro]


Welcome to TerminalGPT-Pro, the terminal-based ChatGPT personal assistant app!
With TerminalGPT-Pro, you can easily interact with the OpenAI GPT-3.5 and GPT-4 language models.

Whether you need help with a quick question or want to explore a complex topic, TerminalGPT-Pro is here to assist you. Simply enter your query and TerminalGPT-Pro will provide you with the best answer possible based on its extensive knowledge base.


## Why?

Some advantages of using TerminalGPT-Pro over the chatGPT browser-based app:

- It doesn't disconnect like the browser-based app, so you can leave it running in a terminal session on the side without losing context.
- It's highly available and can be used whenever you need it.
- It's faster with replies than the browser-based app.
- You can use TerminalGPT-Pro with your IDE terminal, which means you won't have to constantly switch between your browser and your IDE when you have questions.
- TerminalGPT-Pro's answers are tailored to your machine's operating system, distribution, and chip-set architecture
- Doesn't use your conversation data for training the model (unlike the browser-based app).
- Your conversations are stored locally on your machine, so only you can access them.

## Pre-requisites

- Python 3.6 or higher
- An OpenAI Account and API key.
   1. Sign up at <https://beta.openai.com/signup> using email or Google/Microsoft account.
   2. Go to <https://beta.openai.com/account/api-keys> or click on "View API keys" in the menu to get your API key.

## Installation

1. Install the latest TerminalGPT-Pro with pip install.

```sh
pip install terminalgpt-pro -U --user
```

2. Now you have `terminalgpt-pro` command available in your terminal. Run the following install command to configure the app.

```sh
terminalgpt-pro install
```

3. Enter your OpenAI API key when prompted and press enter.

4. Choose one of the models below as the default model. it can be overridden with the `-m --model` flag later.

5.  Choose a printing style ('markdown' is recommended)

That's it! You're ready to use TerminalGPT!
You can now start a new conversation with `terminalgpt-pro new` or load a previous conversation with `terminalgpt-pro load`. Also you can reinstall with `terminalgpt-pro install` or delete previous conversations with `terminalgpt-pro delete`.

---

## Usage

### TL;DR

```sh
Usage: terminalgpt-pro [OPTIONS] COMMAND [ARGS]...

  *~ TerminalGPT-Pro - Your Personal Terminal Assistant ~*

Options:
  --version                       Show the version and exit.
  -m, --model [gpt-3.5-turbo|gpt-3.5-turbo-16k|gpt-4|gpt-4-32k]
                                  Choose a model to use. [default:gpt-3.5-turbo]
  -s, --style [markdown|plain]    Output style. [default: markdown]
  --help                          Show this message and exit.

Commands:
  delete    Choose a previous conversation to delete.
  install   Creating a secret api key for the chatbot.
  load      Choose a previous conversation to load.
  new       Start a new conversation.
  one-shot  One shot question answer.
```

### New

Start a new conversation:

```sh
terminalgpt-pro new
```

### One-Shot

One shot question to get a fast answer in the terminal.

```sh
terminalgpt-pro one-shot "What is the meaning of life?"
```

### Load

Load previous conversations:

```sh
terminalgpt-pro load
```

### Delete

Delete previous conversations:

```sh
terminalgpt-pro delete
```

