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.6.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.6-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alert_helper-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 9a4d3ca0f1ed4d1e3b154058591f18cd5d93f5ef9b9d079e83d4277d6e6637fe
MD5 bb6ab2c62b9d14f52ddeb4fe150290cc
BLAKE2b-256 ab74f5570740589cf592098e8d4ac36ce67f055cb5698e6728b2457729f80d69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alert_helper-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8b72632490480b0cd29908ee744a2f195dc7c246d5b75a234178f63cf9ec7b03
MD5 db9201b50f99ef7516205da686a6c745
BLAKE2b-256 e71d85d69ee3e3d1393fd06a40d527309b9d5f613ffa956502b2b6c2d5dfee5f

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