Skip to main content

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!

Metadata

Release files for erroremail 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for erroremail 0.1.6
File Size Uploaded Provenance Actions
erroremail-0.1.6.tar.gz 11.7 kB Without provenance Details for erroremail-0.1.6.tar.gz

Release files / erroremail-0.1.6.tar.gz

Download URL erroremail-0.1.6.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
656ed9667773ce9b48a8b1db02fd9f21ac0f202906c3d58460c3648524bacc65
BLAKE2b-256 checksum
How to use checksums
14d3be31fe8d228dce1ac36c5872d176a2e4b18615385cd4aba6e39e56fbe325
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for erroremail 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page