Skip to main content

Make all code self-healing with automatic debug state capture and LLM analysis

Project description

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: http://openexcept.com

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

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

selfheal-1.0.2-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

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

Hashes for selfheal-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8136ef59a3c76fab56d49fa28aa706ba0bdc9120f4c4976886fae82934515af2
MD5 ccc0d5b360a2dbb5926ae6e0f58a7d07
BLAKE2b-256 64bbc8914b414594701ee5ab29a7562654422a092fe323c85d54eb7413fb108c

See more details on using hashes here.

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

Hashes for selfheal-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 036804523b879e78ce4efb900704bda9b50a4482b11df9424e978be11a781726
MD5 9a0cc81bbdce5727d98318117b7339a0
BLAKE2b-256 28114294692362bbcc43254cb19f7baff9361c7502d766f2e5b97d2218482540

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page