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_URLenvironment 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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e4170005906f4d985f48397c940c99e569d7313bafd663c7d010742d06daa41
|
|
| MD5 |
fb142e96d5a4b466fde36c3775ee9583
|
|
| BLAKE2b-256 |
744c6f19e4e8faabf737a908fb600219304296fa772f95becccd574117ec5354
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86a5465b0f3797c5a05b53e84e0cb7532a5a2389d45b2d7ec970d11d46dd512e
|
|
| MD5 |
86967e78b766e2065efba1d276e03548
|
|
| BLAKE2b-256 |
83483f802759d021813365605570f6bc7cbda275415ac4a2576f751c897bc0f3
|