PyChatErr
Python global error handler powered by ChatGPT to enhance errors resolutions.
Description
PyChatErr installs a global exception handler that will send the cached exception and related code to ChatGPT completion engine asking it to explain the issue and propose solutions.
Installation
Install using pip:
pip install pychaterr
Usage
This module requires a OpenAI API Key:
- Generate a key at https://platform.openai.com/account/api-keys
- Export it with:
export OPENAPI_API_KEY=sk-...
Then import the module in your code with:
import pychaterr
Demo
Examples
The examples/ folder contains examples showing this module behavior.
Run the samples with:
# Create and activate a virtual environment
pip install -e .
python examples/zerodivision.py
License
See LICENSE file for details.
Metadata
Release files for PyChatErr 0.1.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 | |
|---|---|---|---|---|
| pychaterr-0.1.0.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pychaterr-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / pychaterr-0.1.0.tar.gz
| Download URL | pychaterr-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c32fc3a80f95a470a670bc6576d86bd2c266e63d839324444d0ad784ebb614a3
|
|
BLAKE2b-256 checksum How to use checksums |
001f205a64510e5cb16bdfd1650832c4f0d475ead053b13c230920bb1ee44da0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / pychaterr-0.1.0-py3-none-any.whl
| Download URL | pychaterr-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd5fb47d04969ef63a39027033ffb10120503998f9ff0d2759ab4fae0af24e3f
|
|
BLAKE2b-256 checksum How to use checksums |
e78ba985194b86c9c2b4cce9d66d78bdd31d6a5204aaf4fdc98449e00a375f31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for PyChatErr 0.1.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.