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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file EmailErrorMix-0.1.0.tar.gz.

File metadata

  • Download URL: EmailErrorMix-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for EmailErrorMix-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a99a06c5f4d49d085e71608547becd346d997ec27da9cbc0c4dc4e916cbf85bf
MD5 7cf042a22650d2a2ff8955c9c17ed9a9
BLAKE2b-256 c55eb6f630c5af910e25677ae0dae3cccf32f5d389b7c71aeda66fa098708acb

See more details on using hashes here.

File details

Details for the file EmailErrorMix-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: EmailErrorMix-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for EmailErrorMix-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b623158285dc62a44d0dc2465252aa24efa7692e6cb8029bba8c70df7d064127
MD5 2584530db5bed16ad1c3a2af3d60fc0a
BLAKE2b-256 3e31e9868f21c11e5917f2d3e19cfafe72fb5da2524f6a9da91dd49b2600cee0

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