Skip to main content

Email notifications on task completion

Project description

This module is just a neat little context manager that can notify you via email to your email account when its body is completed. Example usage:

from notifyme import notify

with notify('Long, laborious task'):
    # Perform long, laborious task

Once the long, laborious task is done, you will receive an email saying “Long, laborious task completed.”.

It also comes with a CLI. You simply run notifyme [command ...] to run the command and get an email on completion.

Installation, Configuration, and Use

To install, simply use the command pip install notifyme. To configure this module with your email server settings, create a file in your home directory called .notifyme with contents like the following:

[default]
email = <your-email-here>
host = <smtp-hostname-here>
port = <smtp-port-here>
username = <only-if-different-from-email>
password = <password-here>
security = <SSL or TLS or NONE>

You’ll have to look up your configuration details from your email provider. After you fill this out and save it, you’ll also want to protect it from access by other users, which you can do with the following command:

chmod 600 ~/.notifyme

And you’re done! You can now use the module within Python code as a context manager, or on the command line for any program you’d like.

License

This project is released under the Revised BSD license. See LICENSE.txt for details.

Project details


Download files

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

Source Distribution

notifyme-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file notifyme-0.2.0.tar.gz.

File metadata

  • Download URL: notifyme-0.2.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for notifyme-0.2.0.tar.gz
Algorithm Hash digest
SHA256 30615880a257f5e1789279a47210b787cfbab6185a52c06e46413fe4de022731
MD5 cc7e39060be3ea99fe79850e134c47ac
BLAKE2b-256 52cbbf7a1803c0f453962fa9cdec2466681f4d7a4c875ca2f6e00e0212315c3d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page