🐛 DebugBuddy
DebugBuddy is a beginner-friendly Python debugging assistant and error explainer.
It analyzes common Python exceptions and tries to answer:
- What happened?
- Why did it probably happen?
- Where did it happen?
- What should I check next?
The core package is local and requires no API key.
Installation
pip install debugbuddy
For development:
pip install -e ".[dev]"
Python API
from debugbuddy import analyze_error, explain_error
try:
result = 10 + "5"
except Exception as error:
report = analyze_error(error)
print(report.to_dict())
explain_error(error)
CLI
Run a Python file:
debugbuddy examples/broken_example.py
Analyze a saved traceback:
debugbuddy --traceback traceback.txt
JSON output:
debugbuddy examples/broken_example.py --json
Supported error guides
TypeError, ValueError, NameError, IndexError, KeyError, AttributeError, ZeroDivisionError, FileNotFoundError, ModuleNotFoundError, ImportError, SyntaxError, IndentationError, UnboundLocalError, AssertionError.
Project structure
debugbuddy/
├── src/debugbuddy/
│ ├── __init__.py
│ ├── analyzer.py
│ ├── cli.py
│ ├── errors.py
│ ├── formatter.py
│ ├── models.py
│ └── suggestions.py
├── examples/
├── tests/
├── CHANGELOG.md
├── LICENSE
├── README.md
├── pyproject.toml
└── .gitignore
Tests
pytest
Build for PyPI
python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
Then upload:
python -m twine upload dist/*
You need your own PyPI account and authentication token to publish.
Important
DebugBuddy uses deterministic rules and heuristics. Suggestions are debugging guidance, not guaranteed automatic fixes.
License
MIT. See LICENSE.
Metadata
Release files for debugbuddy-python 1.0.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 | |
|---|---|---|---|---|
| debugbuddy_python-1.0.0.tar.gz | 10.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| debugbuddy_python-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.2 kB
Release files / debugbuddy_python-1.0.0.tar.gz
| Download URL | debugbuddy_python-1.0.0.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cd44270531cef8ff4f2f195a920c339cbcef632993e7e4d82539fa67b8cbfb7
|
|
BLAKE2b-256 checksum How to use checksums |
4fef6209948007a680fcf6659729815ce5ff90558e59d33b89ad7e16aca9ff49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / debugbuddy_python-1.0.0-py3-none-any.whl
| Download URL | debugbuddy_python-1.0.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a7196e054edca52241aa5013b7e610e19ba45c6e09fe0e77283893b1ee50903
|
|
BLAKE2b-256 checksum How to use checksums |
9ca76f3dc15a2586c62771c457b1776f904c9d1db26748022f5fd9f7d25cd7f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logSecurity for debugbuddy-python 1.0.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for debugbuddy_python-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logA 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.