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.6.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file alerting-0.0.6.tar.gz
.
File metadata
- Download URL: alerting-0.0.6.tar.gz
- Upload date:
- Size: 3.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 | 3820bdd85a38facdc80487fe296ad1c6f858b16bac33866792cffcc56b350c62 |
|
MD5 | 94ee4952e44ba07520385e65ac9e30ac |
|
BLAKE2b-256 | a055a935609088db7b903dd18c4590b814c8ce31c58f63a4a26cdd1a155efe1b |
File details
Details for the file alerting-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: alerting-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.1 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 | 7edcb8e8d422402e62ca1bd8009b08bb6206cc3fe470969af50f0f797741f3ce |
|
MD5 | e05a51b7d9e67c5f9428440c924b9bf6 |
|
BLAKE2b-256 | defbed21302355a88e8cabd54bfc75c2ceced95e32dbdcbf55c607e902df3657 |