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.
Metadata
Release files for gptask-cli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gptask_cli-0.2.0.tar.gz | 6.6 kB | Without provenance | Details for gptask_cli-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gptask_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for gptask_cli-0.2.0-py3-none-any.whl |
Total release size: 15.8 kB
Release files / gptask_cli-0.2.0.tar.gz
| Download URL | gptask_cli-0.2.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c749b5493b5a3238a03ade45d66160929ed2f24b0dc6e896db6fe64788984fc
|
|
BLAKE2b-256 checksum How to use checksums |
c7e7170fa05a10ca62ac71622d85e50b372d6403099fcdbf2dd3a12c3748c724
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.0 Darwin/22.1.0
|
Release files / gptask_cli-0.2.0-py3-none-any.whl
| Download URL | gptask_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6cd81af17a3ebd856588f0a72f02bea997d7ef5fdb79328510c8016d873e7f74
|
|
BLAKE2b-256 checksum How to use checksums |
73ce8acb88d27a6d395bcd882542a7a1a88aacd93eb83e337f0e21227127f682
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.0 Darwin/22.1.0
|
Security for gptask-cli 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.