Skip to main content

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 requests and python-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)

  1. Right-click your target server channel and select Edit Channel.
  2. Navigate to Integrations > Webhooks > New Webhook.
  3. Click Copy Webhook URL and paste it into your .env file.

Slack

  1. Go to api.slack.com/apps in your browser.
  2. Click Create New App → choose From scratch.
  3. Name it (e.g., Kizu) → select your workspace → click Create App.
  4. On the left sidebar click Incoming Webhooks.
  5. Toggle Activate Incoming Webhooks to ON.
  6. Scroll down → click Add New Webhook to Workspace.
  7. Select your #bugs channel → click Allow.
  8. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kizu_core-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kizu_core-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for kizu_core-0.1.1.tar.gz
Algorithm Hash digest
SHA256 985241c2ac0868904b81eaa719959509e7d08e722ea9fab112660a5289fd04c0
MD5 b9e5ae544ecc3b2586bd682bef260a8d
BLAKE2b-256 ded85248fab729bb0d8c42b8e652fa2f3bfcc80bd0d58892cd8b0f72de932c3e

See more details on using hashes here.

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

Hashes for kizu_core-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27a85bffb7561025cb7e09a6abcac8c27ea9b15133d7bdc7d5884db685d20eee
MD5 082d4d76d9b10a9ed90dda7d47456d79
BLAKE2b-256 042e2d50b5347bca781607018c3e97afee570dac63c9890f8d5db70e79fca077

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