SelfHeal - Make all code self-healing
Demo
Demo shows:
- Slack alert with a link to the debug state (including the full stack trace, variables, and source code)
- Web viewer to browse and analyze debug states
- LLM analysis of the root cause and fix suggestions
🔗 Try the live demo at: http://openexcept.com
Quick Start
- Install
pip install selfheal
- Configure
export SLACK_BOT_TOKEN="xoxb-your-token" # Optional
- 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
- View Debug States
streamlit run selfheal/debug_viewer.py
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| selfheal-1.0.2.tar.gz | 16.2 kB | Without provenance | Details for selfheal-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| selfheal-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for selfheal-1.0.2-py3-none-any.whl |
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
|
Security for selfheal 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.