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

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.5.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.5-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alert_on_exception-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 ad05ee2c575526dd0b87a40c2cb08189033e264b62bcdf88ee9618db38fe2329
MD5 c2c19db1a13e58b86e692203e6d677c8
BLAKE2b-256 9df132fa58685ac6cca4ec8003195d21c0e29931d631764d542f0881d6a119ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alert_on_exception-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 294bdfc0541af0ce75d521c060a3e1896229c353690f2daaf29a93c89d25f0fc
MD5 258fcbbe02c6b3ff226578d6ad887013
BLAKE2b-256 02151242a83d4f162bd68efc8dc79abd3ca61c4a4fdfb592af0456556309ff41

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