GPTPy: Your kind Python guide, powered by AI to fix errors and explain code
Installation
pip install -U gptpy
Usage
Simply run your code
gptpy runnable_python_code.py
..or run with arguments
gptpy runnable_python_code.py --arg1=1 --arg2=2
Example
Here's a simple Python code, which has a syntax error.
# test.py
def add(a, b):
print("a + b)
If you run test.py, you will get an error.
$ python test.py
File "~/test.py", line 1
print("a + b)
^
SyntaxError: EOL while scanning string literal
Now, let's use gptpy to fix the error.
$ gptpy test.py
--------------------------------------------------
[GPTPy] Your code has an error!
[GPTPy] Error Reason:
# The user code is missing a closing quotation mark.
SyntaxError: EOL while scanning string literal
[GPTPy] Here's fixed code:
print("a + b")
--------------------------------------------------
Limitations
- GPT-3 is not perfect. It may not be able to fix all errors.
- It may take a while to get the result.
Metadata
Release files for gptpy 0.1.6
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 |
|---|---|---|---|---|
| gptpy-0.1.6.tar.gz | 2.7 kB | Without provenance | Details for gptpy-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gptpy-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for gptpy-0.1.6-py3-none-any.whl |
Total release size: 5.9 kB
Release files / gptpy-0.1.6.tar.gz
| Download URL | gptpy-0.1.6.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51b366f828093cf7d91ba201419accbe1c06b63088bf1b7dd76666ed416305f7
|
|
BLAKE2b-256 checksum How to use checksums |
dec93b02bf0581afaa05cae17e8b87dce3ee41429e62f8ec6d37fd4af6cdfe98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Release files / gptpy-0.1.6-py3-none-any.whl
| Download URL | gptpy-0.1.6-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac61377504a0aae93afe25ac113d89535f6789486c5664a29cf631730eeb2d0d
|
|
BLAKE2b-256 checksum How to use checksums |
6ee140bb99ab5353b781744f2962d5b040376ab748ce5a86318c2b32bf3d4636
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for gptpy 0.1.6
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.