claude-here
debug Python with claude.ai
usage
Just
pip install claude-here
then
import claude_here
and any uncaught exceptions will automatically launch a new conversation in claude.ai pre-filled with information for Claude to help you debug the error.
To debug something that isn't causing an exception, just add
breakpoint()
where you want to debug and it will automatically launch Claude with info about the current locals to help you debug.
nice things
Some extra features to note:
- If a
breakpointis hit multiple times, or an uncaught exception is raised after hitting abreakpoint, the information sent to Claude will be cumulative. - If
claude_heredetects thatwebbrowserwill use a text-based browser by default, it will instead print an OSC-8-compliant hyperlink to the terminal for you to open using a graphical browser. This is especially useful if you are debugging a remote machine.
breakpoint
breakpoint additionally supports some optional arguments:
msgcan be set to a string that will be included in the information sent to Claude.just_gather_info=Truewill gather information to send to Claude later (on an uncaught exception orbreakpointwithoutjust_gather_info=True) without actually launching Claude or thebase_debugger.base_debuggerdetermines the debugger to call in addition to launching Claude. Defaults to the previousbreakpointhandler, which by default ispdb.set_trace.
environment variables
claude_here supports some additional configuration via environment variables:
CLAUDE_HERE_PROJECT_IDcan be set to a Claude Projects UUID (https://claude.ai/project/<this-part-here-is-the-uuid>) to launch your debugging conversations in.CLAUDE_HERE_VERBOSITYcan be set to a positive integer that will determine how much information to send to Claude; the larger the value the more info is sent to Claude. Defaults to10.
Metadata
Release files for claude-here 0.2.3
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 | |
|---|---|---|---|---|
| claude_here-0.2.3.tar.gz | 44.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| claude_here-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 97.5 kB
Release files / claude_here-0.2.3.tar.gz
| Download URL | claude_here-0.2.3.tar.gz |
|---|---|
| Size | 44.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98756384951888b2899f70ebab4f412d3be25590ed53ae61677c636c80e7daf5
|
|
BLAKE2b-256 checksum How to use checksums |
2fdaefa7f72deeff63c7be1b81f20933dfeb5a402b45e2dafdb2cbe6868c6e5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Release files / claude_here-0.2.3-py3-none-any.whl
| Download URL | claude_here-0.2.3-py3-none-any.whl |
|---|---|
| Size | 53.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91ef75e905b9e16581a5f009f0d7e0912c983e01b2bcc7e9a7d79db114f879a7
|
|
BLAKE2b-256 checksum How to use checksums |
3176aba2f08a4deb70910e96f328cd11630e252edaa71a22cc49e3d5e89ce8f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Security for claude-here 0.2.3
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.