Skip to main content

Easy to use alerting library for Python 3+

Project description

alt text alt text


Easy to use alerting library for Python 3+

Tested with:

  • Python 3.6+

Use the following command to install using pip:

pip install alerting


from alerting import Alerting
from alerting.clients import AlertingMailGunClient, AlertingSlackClient, AlertingTelegramClient

alerts = Alerting(
    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)

  # something
except Exception as ex:
  alerting.send_alert(title='some bad error happened', message=str(ex))

Project details

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 hashes)

Uploaded source

Built Distribution

alerting-0.0.9-py3-none-any.whl (5.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page