Skip to main content

Simple python notification helper.

Project description

Simple Python Notification Helper

Supported Apps

Slack

  • After obtaining a webhook URL from Slack, set it as the SLACK_WEBHOOK_URL environment variable.

Usage

  • Context manager
from alert_helper import alert

with alert("test-job"):
    # do something
  • Decorator
from alert_helper import alert

@alert("test-job")
def dummy():
    # do something

dummy()
  • Only alert when there is an error
from alert_helper import alert

with alert("test-job", on="error"):
    # do something

To Do

  • Support other apps.

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

alert_helper-0.1.5.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

alert_helper-0.1.5-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file alert_helper-0.1.5.tar.gz.

File metadata

  • Download URL: alert_helper-0.1.5.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for alert_helper-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1e4170005906f4d985f48397c940c99e569d7313bafd663c7d010742d06daa41
MD5 fb142e96d5a4b466fde36c3775ee9583
BLAKE2b-256 744c6f19e4e8faabf737a908fb600219304296fa772f95becccd574117ec5354

See more details on using hashes here.

File details

Details for the file alert_helper-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: alert_helper-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for alert_helper-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 86a5465b0f3797c5a05b53e84e0cb7532a5a2389d45b2d7ec970d11d46dd512e
MD5 86967e78b766e2065efba1d276e03548
BLAKE2b-256 83483f802759d021813365605570f6bc7cbda275415ac4a2576f751c897bc0f3

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