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.7.tar.gz
(2.4 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.7.tar.gz.
File metadata
- Download URL: alert_helper-0.1.7.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aff59b1406016c46aa9f322cebc58e074dcbaf296d3a8f06d38cc0fa50a70e69
|
|
| MD5 |
fb06f0eca97b45f6af2f63e4c2904e1a
|
|
| BLAKE2b-256 |
95d8f2ab6847b6ae0d7bda33d5710c838d44ca94b1f90525cba9442bbb675819
|
File details
Details for the file alert_helper-0.1.7-py3-none-any.whl.
File metadata
- Download URL: alert_helper-0.1.7-py3-none-any.whl
- Upload date:
- Size: 4.7 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 |
bd11e24a29099bdcdbdcc0b956a9f3d0b56ed90e87ee2954419d90dc6c1edca2
|
|
| MD5 |
0bb023123baf6de28ab9ce12cf1e76ab
|
|
| BLAKE2b-256 |
2b843e8fb7f4cf29b4d516c9f8faab6607e408326e39964f716cc880c40c42b3
|