Skip to main content

Easy to use alerting library for Python 3+

Project description

alt text alt text

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


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)

Uploaded Source

Built Distribution

alerting-0.0.7-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

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

Hashes for alerting-0.0.7.tar.gz
Algorithm Hash digest
SHA256 1a58a181aed8211135b36e5d7ceb7fb1fad6c04c6fec37e3773167c0ab250aed
MD5 08f0387259971d99e5eb4618bed78fb6
BLAKE2b-256 21c3768b5a5705fd07622b25f02a26e9086799b442b4796e319db3a2bd28fc52

See more details on using hashes here.

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

Hashes for alerting-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4492c786682b71669e005575fdf0cab8e71f0e065c66b356edb6df0fb63050bc
MD5 411e2d440beee3675d9648f000a10199
BLAKE2b-256 e168b2a4c84a4e994c1264fa458b03e207e16204c0dd0e8cca018f77e0b83f0b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page