Skip to main content

Headless error tracker with Discord and Slack notifications

Project description

KIZU

傷 (Kizu)n. wound, scar, flaw. 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.2.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.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file kizu_core-0.1.2.tar.gz.

File metadata

  • Download URL: kizu_core-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for kizu_core-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0cb8d271827e225a91d5faaab232e1d9cc1a3704f46ae9b8575400a7f3014da9
MD5 bea56a82c0d1de0a4293ba7dc57a7540
BLAKE2b-256 467f3c1480fc9c891cd33ac67a4e03ef6e24fb00cc882b6611cca67c4c8a516c

See more details on using hashes here.

File details

Details for the file kizu_core-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: kizu_core-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for kizu_core-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 af46ab0b84ce97c9d4035e5cb9825ff2f07e9c817c4b65dc896fe56ef9dc9690
MD5 54719f954937f246f84cfd40397ca551
BLAKE2b-256 fcde0355d5686213decc82079bf4f90b2db4df7ebc0c886a63970f1504f8b1e0

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