This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Send an error email when an you get an exception.

Project Description

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!

Release History

Release History

This version
History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
erroremail-0.1.6.tar.gz (11.7 kB) Copy SHA256 Checksum SHA256 Source Jan 23, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting