Skip to main content

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

Release files for selfheal 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for selfheal 1.0.2
File Size Uploaded
selfheal-1.0.2.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for selfheal 1.0.2
File Interpreter ABI Platform
selfheal-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 30.5 kB

Release files / selfheal-1.0.2.tar.gz

Download URL selfheal-1.0.2.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8136ef59a3c76fab56d49fa28aa706ba0bdc9120f4c4976886fae82934515af2
BLAKE2b-256 checksum
How to use checksums
64bbc8914b414594701ee5ab29a7562654422a092fe323c85d54eb7413fb108c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / selfheal-1.0.2-py3-none-any.whl

Download URL selfheal-1.0.2-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
036804523b879e78ce4efb900704bda9b50a4482b11df9424e978be11a781726
BLAKE2b-256 checksum
How to use checksums
28114294692362bbcc43254cb19f7baff9361c7502d766f2e5b97d2218482540
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page