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.4.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.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file smart_errorx-0.1.4.tar.gz.

File metadata

  • Download URL: smart_errorx-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 3352c1e295392fea7b58c6c5ce0a14d05bb7800e20a749d3608504f22f46c703
MD5 038b7bccc80511e49300580ea563ff83
BLAKE2b-256 ea216757d584d0fc1e0a3e496a244359616d19329a9010a973ae1ec1ee17dec9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smart_errorx-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 491918a5d50c7e8456ceb844ba4990b37a7ea1f3a41a522df4a9dd1101ff2fa1
MD5 931a1a3b90c8210880a63e288ece181a
BLAKE2b-256 70c58b3ff0548a5b8f04f1cb0520a40dc9f6931cb969cd7b6b2ba503db6bdea2

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