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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a99a06c5f4d49d085e71608547becd346d997ec27da9cbc0c4dc4e916cbf85bf
|
|
| MD5 |
7cf042a22650d2a2ff8955c9c17ed9a9
|
|
| BLAKE2b-256 |
c55eb6f630c5af910e25677ae0dae3cccf32f5d389b7c71aeda66fa098708acb
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b623158285dc62a44d0dc2465252aa24efa7692e6cb8029bba8c70df7d064127
|
|
| MD5 |
2584530db5bed16ad1c3a2af3d60fc0a
|
|
| BLAKE2b-256 |
3e31e9868f21c11e5917f2d3e19cfafe72fb5da2524f6a9da91dd49b2600cee0
|