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.8.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.8.tar.gz.
File metadata
- Download URL: alert_helper-0.1.8.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 |
66e4b7fcf1f19f17f6ab22ecb14e0f3d2b36270b66de082f97067ef1e4b80e19
|
|
| MD5 |
2791f88425c1bc46bb4fc282265f506e
|
|
| BLAKE2b-256 |
12c8d01639667a977dd7c3b3b97ffc994e8d90ed12c0305d94729290e8e0f607
|
File details
Details for the file alert_helper-0.1.8-py3-none-any.whl.
File metadata
- Download URL: alert_helper-0.1.8-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 |
7938e38587b4cfa8e2822350737a9de5db5b8e1fc9cee84ad82957a8b20bf615
|
|
| MD5 |
ac20024658ba3ef146187609da06841e
|
|
| BLAKE2b-256 |
d19fc01e96cbf2773ff5689bb13c466d0d9b3a3947aaa31f506f2488aecc9181
|