Skip to main content

A decorator for monitoring your task

Project description


This is a Python decorator that can send email for various purpose.

By the way, I am also planning to expand the receiving channels from email to Message, Telegram, Wechat, or even more.

<u>If you are interested, let's work together!</u>


Often times we have some time-consuming task, and we want to leave it run alone without staring at the screen for 7*24 hours.

This package will offer you a one-line experience (a function decorator) of sending you email report with customized information.

So that you can catch a coffee break / go dating / play Dota2 without worrying about your machine learning / web-scraping / crazy robot. Because you can always get key update through your cell phone.

This is definitely a easy function, I believe many guys have written their own equivalent one. What I did is to simplify it into a decorator, so it is now even more convenient!


pip install -U py_reminder

Initial configuration

You will suggest to use a unimportant mail box to send messages, since the password is going to store in plain text. (or if someone knows how to encrypt, please help!)

For the first time, you should specify configuration

from py_reminder import config


You can ignore default_to. It will set to be the same as address by default.

If you receive a testing email, then the configuration is done. You can never include this code thereafter.

Sample code

from py_reminder import monitor

@monitor(task='do something', to='')
def foo()
       return 0


You can ignore to if you send to your default receiver. So the most simple way to use this decorator is:

@monitor('do something')

And you will see

Email Service Provider

  • GMail
    • I used a new registered account and was banned after one day.
    • Haven't tested personal account yet.
  • Foxmail
    • I use my personal account and it is all good up to now (two months).

Tests on other email vendors are welcome!

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

py_reminder-0.1.1.tar.gz (4.2 kB view hashes)

Uploaded source

Built Distribution

py_reminder-0.1.1-py3-none-any.whl (5.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page