Skip to main content

AI-powered debugging tool that catches exceptions and provides fixes.

Project description

AIBugger 🤖

AIBugger is a powerful, AI-driven debugging tool for Python. It automatically catches exceptions, analyzes them using an LLM, and provides actionable fixes and explanations directly in your console (or via Slack/Webhooks).

Features

  • 🪝 Automatic Exception Hooking: Catches uncaught exceptions seamlessly.
  • 🧠 AI Analysis: Uses Gemini or OpenAI to explain why the error happened.
  • 🚀 Multi-Channel Notifications:
    • Console (Default)
    • Slack
    • Custom Webhooks
  • 🔌 Pluggable Architecture: Easily add your own handlers or LLM providers.

Installation

pip install aibugger

(Note: Package is not yet on PyPI, install from source/git)

Usage

Basic Usage (Console)

from aibugger import AIBugger, GeminiClient

# Initialize with your API key
client = GeminiClient(api_key="your-api-key")
debugger = AIBugger(llm_client=client)

# Install the hook
debugger.install()

# Your code here...
print(1 / 0)  # Exception will be caught and analyzed!

Slack Integration

from aibugger import AIBugger, OpenAIClient, SlackHandler

client = OpenAIClient(api_key="sk-...")
slack = SlackHandler(webhook_url="https://hooks.slack.com/...")

debugger = AIBugger(llm_client=client, handlers=[slack])
debugger.install()

Configuration

You can also use environment variables:

  • GEMINI_API_KEY
  • OPENAI_API_KEY

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

aibugger-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

aibugger-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aibugger-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for aibugger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ac497bed64f807314f211842b763b81559f91ca713ef462c0f7849b84a16f0c6
MD5 51546babeb2efab7ca1ac7388ddaa5a6
BLAKE2b-256 b4b1c13bbf22b872482172844623085c3f310460dc465e08a47c0287af0f81b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aibugger-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for aibugger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0deffd96130bb513df4074e9c3a95d6d1a3290c77739bbe78594b291c6cc998a
MD5 2d8cb9ce51a1f3ca1b309bc6444cb604
BLAKE2b-256 190417c1e78e3049d54bc34289e6057e3661c1a333f2a9be83d86a26af1f124b

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