Headless error tracker with Discord and Slack notifications
Project description
KIZU
A hyper-minimalist, headless Python error tracker. Catches unhandled exceptions and dispatches zero-latency, asynchronous alerts directly to Discord or Slack.
Features
- Zero Dependencies: Relies strictly on
requestsandpython-dotenv. - Non-Blocking: Alerts fire in a background thread so your main app never hangs.
- Anti-Spam Cache: Built-in 5-minute cooldown prevents rate-limiting during cascading crashes.
- Headless: No central servers or dashboards. Bring your own webhook.
Installation
git clone [https://github.com/abhi-afk-dev/kizu.git](https://github.com/abhi-afk-dev/kizu.git)
cd kizu
pip install -e .
Configuration
Create a .env file in your root directory. Kizu automatically routes to whichever webhook is provided.
DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/..." SLACK_WEBHOOK_URL="https://hooks.slack.com/services/..."
Usage
Wrap any critical function or API route with the @track decorator.
Python
from dotenv import load_dotenv
from kizu import track
load_dotenv()
@track
def critical_operation():
return 1 / 0 # Kizu silently catches this crash and fires the webhook
if __name__ == "__main__":
critical_operation()
Webhook Setup Guide
Discord (Fastest)
- Right-click your target server channel and select Edit Channel.
- Navigate to Integrations > Webhooks > New Webhook.
- Click Copy Webhook URL and paste it into your .env file.
Slack
- Go to api.slack.com/apps in your browser.
- Click Create New App → choose From scratch.
- Name it (e.g., Kizu) → select your workspace → click Create App.
- On the left sidebar click Incoming Webhooks.
- Toggle Activate Incoming Webhooks to ON.
- Scroll down → click Add New Webhook to Workspace.
- Select your #bugs channel → click Allow.
- It will generate a URL that looks like: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXX.
Copy that. That's your webhook URL. Paste it into .env and you're done.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kizu_core-0.1.1.tar.gz.
File metadata
- Download URL: kizu_core-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
985241c2ac0868904b81eaa719959509e7d08e722ea9fab112660a5289fd04c0
|
|
| MD5 |
b9e5ae544ecc3b2586bd682bef260a8d
|
|
| BLAKE2b-256 |
ded85248fab729bb0d8c42b8e652fa2f3bfcc80bd0d58892cd8b0f72de932c3e
|
File details
Details for the file kizu_core-0.1.1-py3-none-any.whl.
File metadata
- Download URL: kizu_core-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27a85bffb7561025cb7e09a6abcac8c27ea9b15133d7bdc7d5884db685d20eee
|
|
| MD5 |
082d4d76d9b10a9ed90dda7d47456d79
|
|
| BLAKE2b-256 |
042e2d50b5347bca781607018c3e97afee570dac63c9890f8d5db70e79fca077
|