Talk to your code
Project description
GrePT
Talk to your code.
Getting Started
download:
pip install GrePT
- 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.1.tar.gz
(6.2 kB
view details)
Built Distribution
GrePT-1.1.1-py3-none-any.whl
(7.2 kB
view details)
File details
Details for the file GrePT-1.1.1.tar.gz
.
File metadata
- Download URL: GrePT-1.1.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd5d953c3c21b41b6a4e2fc8116d23cc809a051cb04837c310989fa58997ac78 |
|
MD5 | a7337ebb9430663d60e539592fdfbe41 |
|
BLAKE2b-256 | 65320412105bdd86cd8ee56d037cd5a5f3bee860764009580a976dd28115b0cf |
File details
Details for the file GrePT-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: GrePT-1.1.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e5cb3596a1a1d97d0bb6b2c86f742a7d3dafe551cf298d7ac3859f5f34102a4 |
|
MD5 | c1b769388105ffbebf91423847894e7e |
|
BLAKE2b-256 | 1756316a78876020b28e842b84fb9258a08eeada0b4a4b228cd6f2026d4fcb1f |