Skip to content

OpenExcept/SelfHeal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SelfHeal - Make all code self-healing

Demo

Demo shows:

  1. Slack alert with a link to the debug state (including the full stack trace, variables, and source code)
  2. Web viewer to browse and analyze debug states
  3. LLM analysis of the root cause and fix suggestions

Demo

🔗 Try the live demo at: https://selfheal.dev/demo

Quick Start

  1. Install
pip install selfheal
  1. Configure
export SLACK_BOT_TOKEN="xoxb-your-token"  # Optional
  1. 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
  1. View Debug States
streamlit run selfheal/debug_viewer.py

About

Make all code self healing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages