Smart-errorx is the error handler library and help to detect the error and after detect the error give the solution of error.
Project description
🧠 SmartErrorX — AI-Powered Error Detection & Fix Suggestions.
SmartErrorX is an intelligent Python error-handling library That automatically detects in user code, analyzes them using OpenAI, and displays the cause and fix suggestions in a clean, formatted terminal output using the Rich Library.
⚙️ How It Works:-
When you decorate any Python function with @catch, SmartErrorX automatically:
- Executes your function.
- If an error occurs:
- Captures the error message, function source code, and arguments.
- Sends that data to the OpenAI model using your API key from
.env. - Receives a structured response containing:
- 🧩 Cause – why the error occurred.
- 🔧 Fix – how to correct it.
- Displays both with colorful Rich panels.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smart_errorx-0.1.6.tar.gz.
File metadata
- Download URL: smart_errorx-0.1.6.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
478b6c0c3a9c9c0bff3711e45cd371829a04bd2b9105264ee7a209ca537dfaee
|
|
| MD5 |
6cc752695340c02248572747cac034a8
|
|
| BLAKE2b-256 |
498b334aeea9fcc10d3d0c4959a8775477c8f7c17d9d093ccb6fa6b529243872
|
File details
Details for the file smart_errorx-0.1.6-py3-none-any.whl.
File metadata
- Download URL: smart_errorx-0.1.6-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0203a46a42161ab555689c4ae15631e53effb0bf426f69dd8615b0f3977d5097
|
|
| MD5 |
bc2de68ae7908df643807591afad4a86
|
|
| BLAKE2b-256 |
96b0d8eb7e2bfa2de432dcbfd39d2066f0ba5adf8dbe5b8ba93cd6936c774c92
|