Skip to main content

A Python package for AI-based error handling.

Project description

AI Error Handler AI Error Handler is a Python package that uses AI (Llama 3) to automatically detect and provide explanations for errors in Python code. It enhances debugging by offering AI-generated suggestions directly in the terminal.

Features 🚀 AI-powered error explanations 🔥 No need for explicit try-except blocks ⚡ FastAPI-based web API support 🎯 Works seamlessly with llama-cpp-python Installation You can install the package via pip:

sh Copy Edit pip install ai-error-handler Usage

  1. Using AI Error Handler in Python python Copy Edit from ai_error_handler import AIErrorHandler

AIErrorHandler.enable() # Automatically detects and explains errors

Example: This will trigger an error, and AI will suggest a fix

print(undefined_variable) 2. Running the Web API If you want to use AI Error Handler as an API:

sh Copy Edit uvicorn ai_error_handler.api:app --host 0.0.0.0 --port 8000 Then visit: http://127.0.0.1:8000/docs

Requirements Python 3.8+ llama-cpp-python fastapi uvicorn Contributing Feel free to contribute by opening an issue or pull request on GitHub.

License This project is licensed under the MIT License.

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

ai_error_handler-0.1.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

ai_error_handler-0.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file ai_error_handler-0.1.0.tar.gz.

File metadata

  • Download URL: ai_error_handler-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for ai_error_handler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8889ecfdc3b46292854651fbb3518e066f33c612df75438c0396196ada7154de
MD5 0c8809f628882b27fde40abb3da0c67e
BLAKE2b-256 b7523dcc9ae0fb2a113f9895498ba8fe5d05a4ab030080692866e6f4c50158d2

See more details on using hashes here.

File details

Details for the file ai_error_handler-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_error_handler-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d819c2f9d73f2f77f3a10c6d3d94a40901af0cce616645d225ecfb67d786663e
MD5 ae3e39c803c18e03a4492f485971b228
BLAKE2b-256 03c6e59de135f6bb7d54e06878c0574ec7301a650bb23d05d9bac09dc81fb71f

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