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.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for alerting-0.0.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42916b5efd808a0ed706163027543408d9da6580638d78728a606adbb4e53d91 |
|
MD5 | 5ec5e8e5aebff83414266d8e260bc642 |
|
BLAKE2b-256 | 3fdc22247627f5f2bda741f113858dff0d9f3eab2f3eb21c77fe88d85f0318f7 |