Metadata-Version: 2.1
Name: gpyt
Version: 0.2.22
Summary: GPT on the command line.
Author: Justin Stitt
Author-email: jstitt007@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: google-generativeai (>=0.1.0rc3,<0.2.0)
Requires-Dist: gpt4free (>=1.0.2,<2.0.0)
Requires-Dist: openai (>=0.27.5,<0.28.0)
Requires-Dist: openai-async (>=0.0.3,<0.0.4)
Requires-Dist: pydantic (>=1.10.7,<2.0.0)
Requires-Dist: pyperclip (>=1.8.2,<2.0.0)
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
Requires-Dist: textual[dev] (>=0.29.0,<0.30.0)
Description-Content-Type: text/markdown

# gpyt

### GPT in your terminal.


> **Note**
> WIP

<img src="https://img.shields.io/badge/dynamic/json.svg?label=downloads&url=https%3A%2F%2Fpypistats.org%2Fapi%2Fpackages%2Fgpyt%2Frecent&query=data.last_month&colorB=brightgreen&suffix=%2FMonth"/>
<img src="https://img.shields.io/pypi/v/gpyt.svg"/>

---

Try out the new (experimental and buggy) **FREE** model using [GPT4Free](https://github.com/xtekky/gpt4free):

`$ gpyt --free`

^ NO API KEY required

OR Try out PaLM 2 (requires Google MakerSuite API KEY)

`$ gpyt --palm`

If you have access, you can try out GPT4

`$ gpyt --gpt4`

Uses [Textual](https://textual.textualize.io).

## Demo

![gpyt demo](https://github.com/JustinStitt/gpyt/blob/master/media/gpyt-show-1.gif?raw=true)



### Markdown Support

![markdown support](https://github.com/JustinStitt/gpyt/blob/master/media/md-support.png?raw=true)

![markdown support (showing table)](https://github.com/JustinStitt/gpyt/blob/master/media/md-support-2.png?raw=true)


### Installation & Usage
1) `$ pip install gpyt`

2) add `OPENAI_API_KEY="<your_openai_api_key>"` in a `.env` at $HOME or `export OPENAI_API_KEY=<your_key>`

3) `$ gpyt`

Or try this *optional* method for running **gpyt** if you don't have an api key:

4) `$ gpyt --free`

Or try this *optional* method for running **PaLM 2**, Google's premier LLM:

5) `$ gpyt --palm`
     - Be sure to set an api key at `~/.env` with the field `PALM_API_KEY`

Or try out GPT4 w/ gpyt!

6) `$ gpyt --gpt4`

### Keybindings

* `ctrl-b` -> Toggle Dark/Light Mode
* `ctrl-n` -> Open Past Conversations Sidebar
* `ctrl-c` -> Quit
* `ctrl-o` -> Model Selection Menu
* `ctrl-t` -> Open External Editor (for input)
* `ctrl-x` -> hide input box (helpful for small screens)


### TODO

- [ ] add gpt jailbreaks (DAN-esque)
- [ ] add special flags like -t (terse) or -v (verbose) or -d (detailed) or -i

