Metadata-Version: 2.4
Name: aibugger
Version: 0.1.0
Summary: AI-powered debugging tool that catches exceptions and provides fixes.
Author-email: Antigravity <antigravity@example.com>
License: MIT License
        
        Copyright (c) 2025 Byungkyu (Jay) Kang
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/example/aibugger
Project-URL: Bug Tracker, https://github.com/example/aibugger/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Dynamic: license-file

# 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

```bash
pip install aibugger
```

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

## Usage

### Basic Usage (Console)

```python
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

```python
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`
