Make all code self-healing with automatic debug state capture and LLM analysis
Project description
SelfHeal - Make all code self-healing
Demo
Demo shows:
- Slack alert with a link to the debug state (including the full stack trace, variables, and source code)
- Web viewer to browse and analyze debug states
- LLM analysis of the root cause and fix suggestions
🔗 Try the live demo at: http://openexcept.com
Quick Start
- Install
pip install selfheal
- Configure
export SLACK_BOT_TOKEN="xoxb-your-token" # Optional
- Use
from selfheal import FunctionDebugger
debugger = FunctionDebugger(
dump_dir="/path/to/debug/states",
slack_token=os.environ.get("SLACK_BOT_TOKEN")
)
# Decorate functions
@debugger.debug_enabled()
def my_function():
pass
# Or entire classes
@debugger.debug_class()
class MyClass:
pass
- View Debug States
streamlit run selfheal/debug_viewer.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
selfheal-1.0.2.tar.gz
(16.2 kB
view details)
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
selfheal-1.0.2-py3-none-any.whl
(14.4 kB
view details)
File details
Details for the file selfheal-1.0.2.tar.gz.
File metadata
- Download URL: selfheal-1.0.2.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8136ef59a3c76fab56d49fa28aa706ba0bdc9120f4c4976886fae82934515af2
|
|
| MD5 |
ccc0d5b360a2dbb5926ae6e0f58a7d07
|
|
| BLAKE2b-256 |
64bbc8914b414594701ee5ab29a7562654422a092fe323c85d54eb7413fb108c
|
File details
Details for the file selfheal-1.0.2-py3-none-any.whl.
File metadata
- Download URL: selfheal-1.0.2-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
036804523b879e78ce4efb900704bda9b50a4482b11df9424e978be11a781726
|
|
| MD5 |
9a0cc81bbdce5727d98318117b7339a0
|
|
| BLAKE2b-256 |
28114294692362bbcc43254cb19f7baff9361c7502d766f2e5b97d2218482540
|