No project description provided
Project description
GPTask
GPTask is a command-line tool to leverage the power of GPT-4 to automatically format files according to specific prompts.
Installation
Download the package and install using pip:
pip install gptask_cli
Usage
The binary of the package is gptask
. Here are some of the commands:
- To run the gptask on a specific file:
gptask -p your_prompt file
your_prompt
should be a prompt stored in ~/.gptask/prompts
.
- To run the gptask on all files in a directory:
gptask -p your_prompt example/
# Runs on /example/test.py, /example/test2.js, but NOT /example/sub/test.py
- To run the gptask on a glob pattern, just specify the pattern in double quotes:
gptask -p your_prompt "example/*.py"
# Runs on /example/test.py but NOT /example/test2.js or /example/sub/test.py
- To run the gptask on all files in a directory recursively:
gptask -r -p your_prompt example/
# Runs on /example/test.py, /example/test2.js, AND /example/sub/test.py
- To force execution even if some conditions are not met:
gptask -f -p your_prompt file
If a prompt doesn't exist, GPTask will display available prompts.
For example:
gptask -p non_existent_prompt example.js
This will output:
Prompt non_existent_prompt not found
Available prompts:
doc-reviewer
your-prompt
...
Contribution
Contributions are welcomed! Feel free to open an issue or create a pull request.
Running in development: Run ./scripts/test.sh
or alternatively run:
rm -rf dist
poetry build
poetry install
python3 -m pip install --force-reinstall dist/gptask_cli-*-py3-none-any.whl
Deployment instructions:
python3 -m pip install homebrew-pypi-poet
python3 -m pip install gptask_cli
poet -f gptask_cli # Copy to ruby file
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gptask_cli-0.2.0.tar.gz
.
File metadata
- Download URL: gptask_cli-0.2.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.0 Darwin/22.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c749b5493b5a3238a03ade45d66160929ed2f24b0dc6e896db6fe64788984fc |
|
MD5 | 57bcc71fa8c8b9ceb8f9f5b1e657a723 |
|
BLAKE2b-256 | c7e7170fa05a10ca62ac71622d85e50b372d6403099fcdbf2dd3a12c3748c724 |
File details
Details for the file gptask_cli-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: gptask_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.0 Darwin/22.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cd81af17a3ebd856588f0a72f02bea997d7ef5fdb79328510c8016d873e7f74 |
|
MD5 | 4342252f38ee50314c476a1389954007 |
|
BLAKE2b-256 | 73ce8acb88d27a6d395bcd882542a7a1a88aacd93eb83e337f0e21227127f682 |