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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file GrePT-1.1.0.tar.gz.

File metadata

  • Download URL: GrePT-1.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for GrePT-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2b414b8eacec912dc37703833209d67e4003fad167ae4e66221bcafad7d8a436
MD5 39e8e5e2849276fbd5bbfebc5a57f92e
BLAKE2b-256 3c78764bde18f9d22364a7bc58d3cb670ee94abc8f5c74790745e8b3c2f2ec34

See more details on using hashes here.

File details

Details for the file GrePT-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: GrePT-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for GrePT-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8828a8054aa1fe59b758a58af056720c124300353c295ffce35e2fbfbaac8cf1
MD5 117b560aacb38e7fa49639ad3856163d
BLAKE2b-256 9a6c9234d5a52b3dff7f432ba9a3695a297a2b91a6a5a17389f0eb808430d011

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