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.3.tar.gz (2.4 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.3-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alert_on_exception-0.1.3.tar.gz
  • Upload date:
  • Size: 2.4 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.3.tar.gz
Algorithm Hash digest
SHA256 045fb80cf2b47d9c87bcf438724272d698054233889030083626482449422fc9
MD5 c7f7b0cb5d5df3de34ec5630bf1eb7dd
BLAKE2b-256 310aa3f61daf21b7531b68e2dd12e1a468e58759ed79b4679ae1b6022255f584

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alert_on_exception-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a492e500938774ceb0e0293608c0fcc74faa8a014b26a13f458f04e231a1d4b5
MD5 b7daa3249e58acb0fa64756c6976c398
BLAKE2b-256 27efe5848291430f0e3f96bd11b1cb6c3081262fddbe3127af4e1b7e484776d6

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