Skip to main content

Alerting: Easy to Use alerting library for Python

Project description

alt text alt text

Alerting

Easy to use alerting library for Python 3+

Tested with:

  • Python 3.6-3.10

Use the following command to install using pip:

pip install alerting

Sample

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

my_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:
  my_alerts.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.3.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

alerting-0.0.9.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file alerting-0.0.9.3.tar.gz.

File metadata

  • Download URL: alerting-0.0.9.3.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

Hashes for alerting-0.0.9.3.tar.gz
Algorithm Hash digest
SHA256 55e79235c6f81a8f43206e643058e797745245ab0c2a15266cedaba5168fa9f6
MD5 de17efa30638c2066b449bb93ad0926c
BLAKE2b-256 5b7f815742f422667443d9681a5c7a257b772f52cce51f85c367c7e43a8626e2

See more details on using hashes here.

File details

Details for the file alerting-0.0.9.3-py3-none-any.whl.

File metadata

  • Download URL: alerting-0.0.9.3-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

Hashes for alerting-0.0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 951b432a8e73819fcb09af1d7bb7b787ec262de95bb34628b46b2c2f48250b8c
MD5 8af7c589144e3c3272214a7b9677f6a3
BLAKE2b-256 f55e933309c631f63dce893c17883e54421232cd848da85095ee7e8d554cb24f

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