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.1.tar.gz
(8.0 kB
view details)
Built Distribution
ggpt-0.1.1-py3-none-any.whl
(9.6 kB
view details)
File details
Details for the file ggpt-0.1.1.tar.gz
.
File metadata
- Download URL: ggpt-0.1.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.4 Darwin/20.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d98bb9a4888bd0e21c9642f1d239ed374b542268a0de3db3cab5a49bddb24bf8 |
|
MD5 | 611ebd7b62c8b365ade076419a49f3eb |
|
BLAKE2b-256 | 8f4af8830e2e5c37b5e424a11060c59b5946b04080953c3cd73de004c7b1f6ff |
File details
Details for the file ggpt-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: ggpt-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.4 Darwin/20.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7f317ba4d7ec111230a1d47b060a1a4945eb3d7d0130f7625635348473c77e8 |
|
MD5 | 9ae1faae88b4a24d6be66cc02abc07fe |
|
BLAKE2b-256 | bc3ec7ef79d69a72d066b2e6dc89e03a06be6a95de46f040f8110a0577fcb071 |