The Python Debugger (PDb) augmented with AI.
Project description
ai-pdb
The Python Debugger (PDb) augmented with AI.
Description
ai-pdb is an enhanced version of the Python Debugger (PDb) that integrates AI capabilities to assist with debugging tasks. This tool leverages the power of Claude to provide more insightful debugging information and suggestions.
Use Claude directly from your debugging environment to avoid copying and pasting back and forth.
Features
- AI-assisted debugging prompts
- Enhanced context-aware debugging
- Integration with the Anthropic API for AI responses
Installation
Install using pip:
pip install ai-pdb
Usage
You should have ANTHROPIC_API_KEY available in your ENV to be able to use this tool.
To use ai-pdb, simply import it in your Python script and start the debugger as you normally would:
from ai_pdb.ai_pdb import AIPdb
debugger = AIPdB()
debugger.set_trace()
Once you’re in a debugging session, you can use the ai command to assist you with debugging.
There are three sub-commands available:
debug
ai
ai debug
This is the default and is equivalent you just invoking ai from the debugging shell.
This will provide Claude with your current execution context and it will help you understand what’s going on, help you fix errors, etc.
docs
ai docs
This will provide documentation relevant to the execution context.
query
ai query <custom query>
You can ask Claude anything. Your question is automatically enriched with the execution context, providing all necessary information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_pdb-0.1.0.tar.gz.
File metadata
- Download URL: ai_pdb-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dd45140fec6ac002b8f776ec7bbbccc7bddc8eb722c7ffb89756bbc9edba1c8
|
|
| MD5 |
a0fb3e45e646a3ca3844bbeba535d543
|
|
| BLAKE2b-256 |
559820f259dda3a65d13836be25b9f6115677607815a16c8081b8276def452a3
|
File details
Details for the file ai_pdb-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ai_pdb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8208293139fb0496de3bd5dfc70d2b8edccc3a694d8b637ba4bc4e9644146e9a
|
|
| MD5 |
d8008f801b4899d09ef8ea4b5ea6d1ba
|
|
| BLAKE2b-256 |
e102a20cc2fae66412220b83134096bd268f6625e2c31949834bcda351d80abb
|