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.6.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

alerting-0.0.6-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for alerting-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3820bdd85a38facdc80487fe296ad1c6f858b16bac33866792cffcc56b350c62
MD5 94ee4952e44ba07520385e65ac9e30ac
BLAKE2b-256 a055a935609088db7b903dd18c4590b814c8ce31c58f63a4a26cdd1a155efe1b

See more details on using hashes here.

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

Hashes for alerting-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7edcb8e8d422402e62ca1bd8009b08bb6206cc3fe470969af50f0f797741f3ce
MD5 e05a51b7d9e67c5f9428440c924b9bf6
BLAKE2b-256 defbed21302355a88e8cabd54bfc75c2ceced95e32dbdcbf55c607e902df3657

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