Metadata-Version: 2.1
Name: ggpt
Version: 0.1.2
Summary: Gorgeous CLI tools using GPT
Home-page: https://github.com/jenz0000/ggpt
Author: jenz0000
Author-email: fullswing0603@gmail.com
Requires-Python: >=3.7.1,<4.0.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: click (>=8.1.3,<9.0.0)
Requires-Dist: openai (>=0.27.2,<0.28.0)
Requires-Dist: rich (>=13.3.2,<14.0.0)
Project-URL: Repository, https://github.com/jenz0000/ggpt
Description-Content-Type: text/markdown

# ggpt

##### Gorgeous CLI tools using GPT.

<br/>
<br/>

## Installation


```
pip install ggpt
```

<br/>
<br/>

## Setup
1. Obtain an OpenAI API key at https://beta.openai.com/account/api-keys

2. Add it to your shell environment variables
	```
	export OPENAI_API_KEY=<YOUR_API_KEY_HERE>
	```

<br/>
<br/>

## Usage

<br/>

###  docstring

###### generates automated docstring based on code changes.


<br/> 

```
ggpt docstring [OPTIONS]
```

<br/>

| Option         | Description                                       |
| -------------- | ------------------------------------------------- |
| `--api-key TEXT`|OpenAI API Key. <br/> If not provided, `OPENAI_API_KEY` environment variable is used. |
| `--path PATH`   | Path to the Git repository to search for code changes. <br/> If not provided, the current directory is used.|
| `--hash TEXT`   | Hash of the commit to review. <br/>  If not provided, unstaged changes are reviewed by default.     |
| `--staged`      | Include only staged changes in the review. <br/> If not provided, unstaged changes are reviewed by default.  |

<br/>

https://user-images.githubusercontent.com/123562684/227761450-9297f709-3d61-448c-ad78-a04f9a5f41d8.mov

<br/>

---

<br/>


###  review

###### generates automated code review based on code changes.


<br/>

```
ggpt review [OPTIONS]
```

<br/>

| Option         | Description                                       |
| -------------- | ------------------------------------------------- |
| `--api-key TEXT`|OpenAI API Key. <br/> If not provided, `OPENAI_API_KEY` environment variable is used. |
| `--path PATH`   | Path to the Git repository to search for code changes. <br/> If not provided, the current directory is used.|
| `--hash TEXT`   | Hash of the commit to review. <br/>  If not provided, unstaged changes are reviewed by default.     |
| `--staged`      | Include only staged changes in the review. <br/> If not provided, unstaged changes are reviewed by default.  |

<br/>

https://user-images.githubusercontent.com/123562684/227762097-1c42b186-014f-48fe-b116-ee5e6c39f9f7.mov

<br/>

---

<br/>


###  naming

###### suggests variable names based on submitted prompt. 


<br/>

```
ggpt naming PROMPT [OPTIONS]
```

<br/>

| Option         | Description                                       |
| -------------- | ------------------------------------------------- |
| `--api-key TEXT`|OpenAI API Key. <br/> If not provided, `OPENAI_API_KEY` environment variable is used. |

<br/>

https://user-images.githubusercontent.com/123562684/227763626-d329f156-c7f6-4a46-bfee-57504882d62c.mov


<br/>

## License


MIT LISENCE
