Skip to main content

Talk to your code

Project description

GrePT

Talk to your code.

Getting Started

download:

  1. pip install GrePT
  2. Get an API key from OpenAI.

Usage

Set your API key

export OPENAI_API_KEY=<key>

  • -q/--query: followed by a query in ""
  • -i/--interactive: opens interactive mode in the terminal. If a query is also specified it will be the first query ran.
  • -l/--level: specify the max recursive depth for walking the file system. Default is 1 (current directory).
  • -x/--suffix: followed by any amount of file suffixes (e.g. .py). Will only query files with these file endings.
  • -t/--tokens: specify the max amount of tokens in response. Defaults is 250.

Examples

grept main.py -i query the main.py file in interactive mode.

grept src/ README.md -q "What does this project do" query the src directory and README.md

grept src/ -l 2 -x .py query all python files within the src folder and its children

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

GrePT-1.1.0.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

GrePT-1.1.0-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

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