Skip to main content

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:

  1. Executes your function.
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart_errorx-0.1.6.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smart_errorx-0.1.6-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for smart_errorx-0.1.6.tar.gz
Algorithm Hash digest
SHA256 478b6c0c3a9c9c0bff3711e45cd371829a04bd2b9105264ee7a209ca537dfaee
MD5 6cc752695340c02248572747cac034a8
BLAKE2b-256 498b334aeea9fcc10d3d0c4959a8775477c8f7c17d9d093ccb6fa6b529243872

See more details on using hashes here.

File details

Details for the file smart_errorx-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for smart_errorx-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0203a46a42161ab555689c4ae15631e53effb0bf426f69dd8615b0f3977d5097
MD5 bc2de68ae7908df643807591afad4a86
BLAKE2b-256 96b0d8eb7e2bfa2de432dcbfd39d2066f0ba5adf8dbe5b8ba93cd6936c774c92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page