Skip to main content

Slack Crash Alerter Client using Incoming Webhooks

Reason this release was yanked:

Depricated Version

Project description

Slack Alerter

Slack Slack Alerts, Automated Crash Alerts for your projects

A Python package for sending alerts to Slack channels using webhooks. This package allows you to easily notify users about important events or errors in your application, improving monitoring and response times.

Features

  • Customizable Alerts: Send alerts with specific headers and messages.
  • Automatic Exception Handling: Automatically log and notify about unhandled exceptions and threading issues.
  • Retry Mechanism: Configurable retries for sending alerts, ensuring reliable notifications.

Installation

You can install the package via pip:

pip install slack-alerter

Usage

Basic Example

Here’s a quick example of how to use the slack_alerter package:

from slack_alerter import Alerts
import sys
import threading

# Initialize the Alerts class
al = Alerts(
    module_name="alerter_test",
    slack_alerts_webhook='https://hooks.slack.com/services/your/webhook/url'
)

# Send a test alert
al.alert("Custom Header", "This is a custom alert message.")

# Set up exception handling
sys.excepthook = al.handle_exception
threading.excepthook = al.handle_threading_excepthook

Configuration

The following configuration parameters are required for initializing the Alerts class:

  • slack_alerts_webhook: Your Slack webhook URL (mandatory).
  • module_name: The name of your module (mandatory).

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Hritik Karwasra - https://github.com/hritikkarwasra

Acknowledgments

Thanks to the Slack API for providing the webhook functionality that makes this package possible.

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

slack_alerter-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

slack_alerter-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file slack_alerter-0.1.0.tar.gz.

File metadata

  • Download URL: slack_alerter-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for slack_alerter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d90a427cf143dc81ee4fe14f22a23dcaea636b80c6307191328d9314bad48d66
MD5 4d67c3f0bd17de6cf368f4de078625dd
BLAKE2b-256 24f9874bb3a363d1047f26ea85be7e8ad63bfd8bab2d416d90b533013cf19e37

See more details on using hashes here.

File details

Details for the file slack_alerter-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: slack_alerter-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for slack_alerter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d785f879080b3da378283d5c3cc8b2a6dccb6d78c62fa3351dc629de2ab2a116
MD5 acdfb17ee51fb488fa0f301780fb1eef
BLAKE2b-256 7d2afff3d019cd863c0a05fe7b53b002b6f87237d88406cf347ab11746d17b99

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