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.2.tar.gz
(8.4 kB
view details)
Built Distribution
ggpt-0.1.2-py3-none-any.whl
(9.9 kB
view details)
File details
Details for the file ggpt-0.1.2.tar.gz
.
File metadata
- Download URL: ggpt-0.1.2.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.8.9 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f872e77cb5d8e95058340604cc1194deae4cb5c8148672fc5c5d1f62f993220b |
|
MD5 | 429634efc982581f77bbd9b8c95949ad |
|
BLAKE2b-256 | 6b7c839cab3b00f8b60ddc5b69a35dff2191cc327c7520c0641a93a703dd7a28 |
File details
Details for the file ggpt-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: ggpt-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.8.9 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d5c0d548996aea061de04b1f2628a4cc0279e0ada004adfc2b9d0bdde544a66 |
|
MD5 | 417eff1cf1edca4e903cdb4755835ed6 |
|
BLAKE2b-256 | 51d8ffb6188ff4e8745d2c2df6fbf976f6cea2712147cb86cecfb1bbfd0261e8 |