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.0.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.0-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

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

Hashes for selfheal-1.0.0.tar.gz
Algorithm Hash digest
SHA256 56663fd6aeaa8b5c3e1fc684e3d3fe36529ef0175430a5a962c993993ee0fa34
MD5 b80517b462f7dbf7dbaacf00040be143
BLAKE2b-256 db75ab02ce3b4ef63fd72f98a6be1ca32ed82c573a5c264c37e8b8b373ccc4cc

See more details on using hashes here.

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

Hashes for selfheal-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70a6ae875962ffb5cd756638c47583d0b5760be93c6464e492cc767983344045
MD5 1df088ea7f0b66fd55d014cd54925e91
BLAKE2b-256 86392d78b86bb7565a7e64b34a072b67760635e28b1e379c2468a3655f4686a6

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