Easy to use alerting library for Python 3+
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.7.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file alerting-0.0.7.tar.gz
.
File metadata
- Download URL: alerting-0.0.7.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a58a181aed8211135b36e5d7ceb7fb1fad6c04c6fec37e3773167c0ab250aed |
|
MD5 | 08f0387259971d99e5eb4618bed78fb6 |
|
BLAKE2b-256 | 21c3768b5a5705fd07622b25f02a26e9086799b442b4796e319db3a2bd28fc52 |
File details
Details for the file alerting-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: alerting-0.0.7-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4492c786682b71669e005575fdf0cab8e71f0e065c66b356edb6df0fb63050bc |
|
MD5 | 411e2d440beee3675d9648f000a10199 |
|
BLAKE2b-256 | e168b2a4c84a4e994c1264fa458b03e207e16204c0dd0e8cca018f77e0b83f0b |