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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for EmailErrorMix-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b623158285dc62a44d0dc2465252aa24efa7692e6cb8029bba8c70df7d064127 |
|
MD5 | 2584530db5bed16ad1c3a2af3d60fc0a |
|
BLAKE2b-256 | 3e31e9868f21c11e5917f2d3e19cfafe72fb5da2524f6a9da91dd49b2600cee0 |