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
  2. Web viewer to browse and analyze debug states
  3. LLM analysis of the root cause and fix suggestions

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

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)

Uploaded Source

Built Distribution

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

selfheal-1.0.1-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

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

Hashes for selfheal-1.0.1.tar.gz
Algorithm Hash digest
SHA256 276697b2aaa9fc3a96915dba1078f25566125a81dc37079963f5d795ab820ea8
MD5 2be7abe6f97707191e26969be3c35fd7
BLAKE2b-256 31c45e258492fa52311ae9f61bd3459ea9d9ae809bbd8167a57a9993a06ec8f1

See more details on using hashes here.

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

Hashes for selfheal-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aba5f53f2e4c2d5d4cea5d8ec43e5fbd48bf39c03a68d6802c18684befd3a62b
MD5 3a6b70a204646bf32054bdd914a92a22
BLAKE2b-256 c1acf568a749b1a06bd100dff1529ad89a454604b806caf9bfa2c0368118243b

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