Skip to main content

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

Metadata

Release files for alerting 0.0.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alerting 0.0.9.3
File Size Uploaded Provenance
alerting-0.0.9.3.tar.gz 5.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for alerting 0.0.9.3
File Interpreter ABI Platform
alerting-0.0.9.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / alerting-0.0.9.3.tar.gz

Download URL alerting-0.0.9.3.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
55e79235c6f81a8f43206e643058e797745245ab0c2a15266cedaba5168fa9f6
BLAKE2b-256 checksum
How to use checksums
5b7f815742f422667443d9681a5c7a257b772f52cce51f85c367c7e43a8626e2
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / alerting-0.0.9.3-py3-none-any.whl

Download URL alerting-0.0.9.3-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
951b432a8e73819fcb09af1d7bb7b787ec262de95bb34628b46b2c2f48250b8c
BLAKE2b-256 checksum
How to use checksums
f55e933309c631f63dce893c17883e54421232cd848da85095ee7e8d554cb24f
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for alerting 0.0.9.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page