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.1.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.1-py3-none-any.whl
(22.1 kB
view details)
File details
Details for the file selfheal-1.0.1.tar.gz.
File metadata
- Download URL: selfheal-1.0.1.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 |
276697b2aaa9fc3a96915dba1078f25566125a81dc37079963f5d795ab820ea8
|
|
| MD5 |
2be7abe6f97707191e26969be3c35fd7
|
|
| BLAKE2b-256 |
31c45e258492fa52311ae9f61bd3459ea9d9ae809bbd8167a57a9993a06ec8f1
|
File details
Details for the file selfheal-1.0.1-py3-none-any.whl.
File metadata
- Download URL: selfheal-1.0.1-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 |
aba5f53f2e4c2d5d4cea5d8ec43e5fbd48bf39c03a68d6802c18684befd3a62b
|
|
| MD5 |
3a6b70a204646bf32054bdd914a92a22
|
|
| BLAKE2b-256 |
c1acf568a749b1a06bd100dff1529ad89a454604b806caf9bfa2c0368118243b
|