Wrap a critical function or API route with the track decorator to get instant crash alerts.
Route error alerts to a Discord channel using a webhook URL with no dashboard to maintain.
Route error alerts to a Slack channel instead, using the same decorator and a different webhook.
Avoid alert spam during a cascading crash thanks to the built-in five minute cooldown.
| abhi-afk-dev/kizu | 0xallam/my-recipe | 0xhassaan/nn-from-scratch | |
|---|---|---|---|
| Stars | 0 | — | 0 |
| Language | Python | Python | Python |
| Last pushed | — | 2022-11-22 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 1/5 | 2/5 | 4/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a Discord or Slack webhook URL set in a .env file before alerts will send.
Kizu is a small Python tool that watches for crashes in your code and sends an alert straight to a Discord or Slack channel when one happens. Its name is a Japanese word meaning wound or scar, which fits its purpose of flagging where your code broke. It has no dashboard or central server of its own. Instead, you provide your own webhook link from Discord or Slack, and Kizu sends the alert there directly, which the README describes as a headless design. The tool is meant to be as small and simple as possible. It only depends on two other Python packages, one for making web requests and one for reading configuration files. When an error happens, the alert is sent in a background thread so the rest of your program keeps running without waiting on it. It also has a built in five minute cooldown so that if your program crashes repeatedly in a short period, you do not get flooded with duplicate alerts. Using it means installing the package from the cloned repository, creating a configuration file with your Discord or Slack webhook address, and then adding a single decorator called track above any function you want watched. If that function raises an unhandled error, Kizu quietly catches it and fires off the webhook instead of letting your program crash silently or noisily. The README walks through, step by step, how to create a webhook URL in both Discord, which it describes as the faster option, and Slack, which involves creating a small app in the Slack developer site and turning on incoming webhooks for a chosen channel. The README does not mention a license for this project.
A tiny headless Python tool that catches unhandled crashes in your code and sends instant alerts to Discord or Slack.
Mainly Python. The stack also includes Python, requests, python-dotenv.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.