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 hashes)
Built Distribution
Close
Hashes for alerting-0.0.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8eb1742cb3cb7628470f4481ac0cbe53e577f1b3162829f7670e63a4d1c3b0f |
|
MD5 | 4e72953c2e1322140e324e5658fa4323 |
|
BLAKE2b-256 | 89f3110c1dfaef17c142da1d07f13f68c6bca5513bae94250329853f8299c3fe |