Skip to main content

A Python package to alert users about exceptions.

Project description

AlertOnException

AlertOnException is a Python library designed to send email notifications when exceptions occur in your applications. It is particularly useful for monitoring applications in production, ensuring you are immediately alerted to any issues that arise.

Features

  • Simple setup for sending email notifications.
  • Customizable subject and message content.

Installation

Install using below pip command

pip install alert-on-exception

To use ExceptionNotifier, you need to configure it with your SMTP details and the recipient's information. Here's a quick example:

from alert_on_exception import alert

# Create an instance of ExceptionNotifier
notifier = alert.AlertOnException("receiver@example.com", "Application Error", "An error has occurred!")

# Send a notification
notifier.send_notification()

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

alert_on_exception-0.1.4.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alert_on_exception-0.1.4-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file alert_on_exception-0.1.4.tar.gz.

File metadata

  • Download URL: alert_on_exception-0.1.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for alert_on_exception-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e62ad5d4cfdd51433a592b96671896c2c02f6164bc652f7f28070b53696ecbd2
MD5 280f92598177d556947227673d74b3a0
BLAKE2b-256 3166be69b016e8859461ee248b220a339ccc1552c361fafc2ed642a4ede2ba46

See more details on using hashes here.

File details

Details for the file alert_on_exception-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for alert_on_exception-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 14466d58a8d2a2c877db1bd4ebd650c1a04f661a1208ffc28d63101deee25f36
MD5 0dc990a286944bec5bbc9c5dea4008f6
BLAKE2b-256 ae0efe015b0459847ab97b8b9476a3eb3e36e50910d45e5e89e9a97beac1495e

See more details on using hashes here.

Supported by

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