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 details)
Built Distribution
File details
Details for the file alerting-0.0.9.1.tar.gz
.
File metadata
- Download URL: alerting-0.0.9.1.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 | 5b223b693a060da30c9720e198b01eac8b2a4bc364fa41e65a5416cbdf43e6ee |
|
MD5 | e69eeedb295d7ab4ea28a17fbc3b6552 |
|
BLAKE2b-256 | 446a228d51d62216bc7c09e75c6571dffa9b4ba048522e510c18cf5ec848dfca |
File details
Details for the file alerting-0.0.9.1-py3-none-any.whl
.
File metadata
- Download URL: alerting-0.0.9.1-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 | 42916b5efd808a0ed706163027543408d9da6580638d78728a606adbb4e53d91 |
|
MD5 | 5ec5e8e5aebff83414266d8e260bc642 |
|
BLAKE2b-256 | 3fdc22247627f5f2bda741f113858dff0d9f3eab2f3eb21c77fe88d85f0318f7 |