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.
Metadata
Release files for ai-pdb 0.1.1
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 | Actions |
|---|---|---|---|---|
| ai_pdb-0.1.1.tar.gz | 8.8 kB | Without provenance | Details for ai_pdb-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_pdb-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ai_pdb-0.1.1-py3-none-any.whl |
Total release size: 19.2 kB
Release files / ai_pdb-0.1.1.tar.gz
| Download URL | ai_pdb-0.1.1.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7254035d82aee6a3cd001a2167d197ece401cc20c529ff7a5b296e92ad7ba66
|
|
BLAKE2b-256 checksum How to use checksums |
53511023bf7d5d6b84b27121e5ac5acfe91f1a92f11f990865ce40eba4e59fab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.5.0
|
Release files / ai_pdb-0.1.1-py3-none-any.whl
| Download URL | ai_pdb-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21f035c66387375d2ecf18abb1fa08d836bbf658147c0a32b8b2c02bba672c7a
|
|
BLAKE2b-256 checksum How to use checksums |
a736e28c3d9d4b7f9b42fe569ee781ba5116c978bee86da27e9f229b2e5f3481
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.5.0
|
Security for ai-pdb 0.1.1
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.