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 AlertOnException

# Create an instance of ExceptionNotifier
notifier = 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.1.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.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alert_on_exception-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1f371668ccfb4e4ef9f31bd32f0eedaf5520020cf6795cefdef05ab2abf8d927
MD5 68571a5cca4aac4723bbc80d5c760658
BLAKE2b-256 3adbd25b4cef46a96df525c9f387425bd08cc19dd462f4f9208d4474d0a10db9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alert_on_exception-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d93ed2a7392207d6761fffb6255224cfffc8bff38550b4daa760a77bae114448
MD5 9673a4c56c0c3418aa25d73af8f79d93
BLAKE2b-256 1c833338352d4170a9a1391b10165f9ac4850bdf12905c578b399879f1ff30a5

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