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
- Web viewer to browse and analyze debug states
- LLM analysis of the root cause and fix suggestions
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
Access example at http://openexcept.com
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.0.tar.gz
(24.0 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.0-py3-none-any.whl
(22.1 kB
view details)
File details
Details for the file selfheal-1.0.0.tar.gz.
File metadata
- Download URL: selfheal-1.0.0.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56663fd6aeaa8b5c3e1fc684e3d3fe36529ef0175430a5a962c993993ee0fa34
|
|
| MD5 |
b80517b462f7dbf7dbaacf00040be143
|
|
| BLAKE2b-256 |
db75ab02ce3b4ef63fd72f98a6be1ca32ed82c573a5c264c37e8b8b373ccc4cc
|
File details
Details for the file selfheal-1.0.0-py3-none-any.whl.
File metadata
- Download URL: selfheal-1.0.0-py3-none-any.whl
- Upload date:
- Size: 22.1 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 |
70a6ae875962ffb5cd756638c47583d0b5760be93c6464e492cc767983344045
|
|
| MD5 |
1df088ea7f0b66fd55d014cd54925e91
|
|
| BLAKE2b-256 |
86392d78b86bb7565a7e64b34a072b67760635e28b1e379c2468a3655f4686a6
|