Skip to main content

Gorgeous CLI tools using GPT

Project description

ggpt

Gorgeous CLI tools using GPT.


Installation

pip install ggpt


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>
    


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.

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




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.

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




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.

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


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.4.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

ggpt-0.1.4-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file ggpt-0.1.4.tar.gz.

File metadata

  • Download URL: ggpt-0.1.4.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

Hashes for ggpt-0.1.4.tar.gz
Algorithm Hash digest
SHA256 37d8797942af578a958415b1607b11748a4f549c72b8b7d69da505f22d98b25e
MD5 8bf3a7d9c58f2b25211f6baab44ce3d7
BLAKE2b-256 6278ffdad061126f4a994b6f5c0d8e1f7ef53f97c80200b3881d58ca9e3ce48c

See more details on using hashes here.

File details

Details for the file ggpt-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ggpt-0.1.4-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

Hashes for ggpt-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 05a73499b63235b5619534542b0d54ddb85449ad885b64dfea24b1b94e6c3aa0
MD5 97086796b7c59e38642628fe2e67f2a7
BLAKE2b-256 9404ef2b65d093090825d486fef07950a58f71e5f4a9ee405c999b47de02267e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page