Skip to main content

A Python package for automated error notification emails, enhancing software debugging and maintenance.

Project description

EmailErrorMix

A Python package for automated error notification emails, enhancing software debugging and maintenance.

Features

  • Automatic error detection and notification
  • Support for multiple email recipients
  • Error tracking and analytics
  • Error notification throttling

Installing

To install the library you can just run the following command:

# Linux/macOS
pip3 install EmailErrorMix

# Windows
pip install EmailErrorMix

Function Example

from EmailErrorMix import ErrorEmailer 

error_emailer = ErrorEmailer(sender_email='',
                             sender_password='', 
                             smtp_server='smtp.gmail.com', 
                             smtp_port=465)

@error_emailer.notify_on_error()
def example_function(x, y):
    return x / y

if __name__ == '__main__':
    result = example_function(1, 0)

ContextManager Example

from EmailErrorMix import ErrorEmailer 

error_emailer = ErrorEmailer(sender_email='',
                             sender_password='', 
                             smtp_server='smtp.gmail.com', 
                             smtp_port=465)

if __name__ == '__main__':
    with error_emailer.context_notify_on_error():
        result = 1/0

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

EmailErrorMix-0.1.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

EmailErrorMix-0.1.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

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