erroremail-0.1.6
توضیحات
Send an error email when an you get an exception.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | erroremail-0.1.6 |
| نام | erroremail |
| نسخه کتابخانه | 0.1.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Eric Larson |
| ایمیل نویسنده | eric@ionrock.org |
| آدرس صفحه اصلی | https://github.com/ionrock/erroremail |
| آدرس اینترنتی | https://pypi.org/project/erroremail/ |
| مجوز | BSD |
============
ErrorEmail
============
..
.. image:: https://badge.fury.io/py/erroremail.png
:target: http://badge.fury.io/py/erroremail
.. image:: https://travis-ci.org/ionrock/erroremail.png?branch=master
:target: https://travis-ci.org/ionrock/erroremail
.. image:: https://pypip.in/d/erroremail/badge.png
:target: https://pypi.python.org/pypi/erroremail
Send an error email when an you get an exception.
* Free software: BSD license
* Documentation: See Below
What does it do?
================
Here is how it works: ::
with ErrorEmail(email_config):
do_stuff()
If `do_stuff` raises an exception, it will send an email with the
traceback. That's it.
Configuration
=============
The ErrorEmail context manager accepts a configuration dictionary that
defines the To, From and SMTP server information. Here is an example: ::
{
'SERVER': 'smtp.myhost.com',
'PORT': 25,
'TO': ['foo@bar.com', 'baz@bar.com'],
'FROM': 'erroremailer@myhost.com',
}
ErrorEmail doesn't have robust email support at the moment. I'm happy
to accept pull requests!
نحوه نصب
نصب پکیج whl erroremail-0.1.6:
pip install erroremail-0.1.6.whl
نصب پکیج tar.gz erroremail-0.1.6:
pip install erroremail-0.1.6.tar.gz