Alerting: Easy to Use alerting library for Python
Project description
Alerting
Easy to use alerting library for Python 3+
Tested with:
- Python 3.6+
Use the following command to install using pip:
pip install alerting
Sample
from alerting import Alerting
from alerting.clients import AlertingMailGunClient, AlertingSlackClient, AlertingTelegramClient
alerts = Alerting(
clients=[
AlertingSendGridClient(sendgrid_api_key, from_email),
AlertingMailGunClient(your_mailgun_api_key, your_domain, from_email, target_email),
AlertingSlackClient(your_bot_user_oauth, target_channel),
AlertingTelegramClient(bot_token, chat_id)
]
)
try:
# something
except Exception as ex:
alerting.send_alert(title='some bad error happened', message=str(ex))
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
alerting-0.0.9.2.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file alerting-0.0.9.2.tar.gz
.
File metadata
- Download URL: alerting-0.0.9.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ff42d3aa90cc41ced867454a7ff9accb4d1be748396610bd8f47e12c82bfb7b |
|
MD5 | 10e1c4e801211231875bf1ca9152bce8 |
|
BLAKE2b-256 | 9b81d97af58784141dc8e8480c80beab3b0147de7257978a07ca4e46efa98d27 |
File details
Details for the file alerting-0.0.9.2-py3-none-any.whl
.
File metadata
- Download URL: alerting-0.0.9.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8eb1742cb3cb7628470f4481ac0cbe53e577f1b3162829f7670e63a4d1c3b0f |
|
MD5 | 4e72953c2e1322140e324e5658fa4323 |
|
BLAKE2b-256 | 89f3110c1dfaef17c142da1d07f13f68c6bca5513bae94250329853f8299c3fe |