Gorgeous CLI tools using GPT
Project description
ggpt
Gorgeous CLI tools using GPT.
Installation
pip install ggpt
Setup
-
Obtain an OpenAI API key at https://beta.openai.com/account/api-keys
-
Add it to your shell environment variables
export OPENAI_API_KEY=<YOUR_API_KEY_HERE>
Usage
docstring
generates automated docstring based on code changes.
ggpt docstring [OPTIONS]
Option | Description |
---|---|
--api-key TEXT |
OpenAI API Key. If not provided, OPENAI_API_KEY environment variable is used. |
--path PATH |
Path to the Git repository to search for code changes. If not provided, the current directory is used. |
--hash TEXT |
Hash of the commit to review. If not provided, unstaged changes are reviewed by default. |
--staged |
Include only staged changes in the review. If not provided, unstaged changes are reviewed by default. |
review
generates automated code review based on code changes.
ggpt review [OPTIONS]
Option | Description |
---|---|
--api-key TEXT |
OpenAI API Key. If not provided, OPENAI_API_KEY environment variable is used. |
--path PATH |
Path to the Git repository to search for code changes. If not provided, the current directory is used. |
--hash TEXT |
Hash of the commit to review. If not provided, unstaged changes are reviewed by default. |
--staged |
Include only staged changes in the review. If not provided, unstaged changes are reviewed by default. |
naming
suggests variable names based on submitted prompt.
ggpt naming PROMPT [OPTIONS]
Option | Description |
---|---|
--api-key TEXT |
OpenAI API Key. If not provided, OPENAI_API_KEY environment variable is used. |
License
MIT LISENCE
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
ggpt-0.1.3.tar.gz
(7.7 kB
view details)
Built Distribution
ggpt-0.1.3-py3-none-any.whl
(9.9 kB
view details)
File details
Details for the file ggpt-0.1.3.tar.gz
.
File metadata
- Download URL: ggpt-0.1.3.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.8.16 Linux/5.15.0-1034-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d1061d9d7d308d1c206eaaa8a314f984c5a0c47abb99c408726d4fed672d136 |
|
MD5 | 6831b919dffbd4a34f36d49ec6ab538d |
|
BLAKE2b-256 | a47aebdb25d1e1f965fb950a21fff98bbcf6071898fe0665aaa90b42fd31e515 |
File details
Details for the file ggpt-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: ggpt-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.8.16 Linux/5.15.0-1034-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ab733cab6664e54df6b3dbfc9bfd72c9359ad5364669e6a84f826584663322c |
|
MD5 | 5b640fbef77bf32ce16d24cf64b5fe9c |
|
BLAKE2b-256 | c9788fe7b8ea7c5a1aa71fe8db3d57424bec2c85a51aaba7b583ffc3ad83743b |