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.9.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file alerting-0.0.9.tar.gz
.
File metadata
- Download URL: alerting-0.0.9.tar.gz
- Upload date:
- Size: 4.6 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.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db66ebf805659b67456ec6b88a087d4fa13e6c15100e9685283951d6c7d0720a |
|
MD5 | dbaae6a4b5d7981d2758e13b01422b78 |
|
BLAKE2b-256 | 854ced37504efed52e7f3317e61b15a2dcb9a99d6f8188585042d704cfbb2d4c |
File details
Details for the file alerting-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: alerting-0.0.9-py3-none-any.whl
- Upload date:
- Size: 5.8 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.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64f9d1f131b5645f5e32f68b3b2cf6d798ed6a6f1ebee83b31eef003aa6c9693 |
|
MD5 | cca2188de1e19c6683955c0e4cfd6b7c |
|
BLAKE2b-256 | c4eb0d69560f8a2748baba7ef32f92f639c742231d18eb25afbede3b2b89def7 |