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_KEYOPENAI_API_KEY
Metadata
Release files for aibugger 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aibugger-0.1.0.tar.gz | 5.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aibugger-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / aibugger-0.1.0.tar.gz
| Download URL | aibugger-0.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac497bed64f807314f211842b763b81559f91ca713ef462c0f7849b84a16f0c6
|
|
BLAKE2b-256 checksum How to use checksums |
b4b1c13bbf22b872482172844623085c3f310460dc465e08a47c0287af0f81b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / aibugger-0.1.0-py3-none-any.whl
| Download URL | aibugger-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0deffd96130bb513df4074e9c3a95d6d1a3290c77739bbe78594b291c6cc998a
|
|
BLAKE2b-256 checksum How to use checksums |
190417c1e78e3049d54bc34289e6057e3661c1a333f2a9be83d86a26af1f124b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for aibugger 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.