How to make Reminder application using python

Hello everyone so here we are going to learn how we can make our reminder application using python,you can make your “drink water reminder” application or you can make “take a break reminder application”, so here i will share two ways first for MAC os user and second one for windows user.

So first we will see how you can make your reminder application if you are MAC user

So for MAC user we are going to use pync library we will divide our code in two part in first part we will import all required library and in second part we will write the code for reminder

So here the first step

Step no.1

First we need to install pync in our system so we will use below command

pip install pync

Now we will use this library

import pync

import time

Now the second step

Step no.2 

def reminder():

   pync.notify(title = “break reminder”, message=”hello sir please take some break from work”,timeout = 1)

while True:

   reminder()

   time.sleep(10)

Here we have created reminder function and in that reminder function we have used notify function so with the help of notify function we have define the message and also we can define the timeout(which will define how much time notification will stay on screen)

And at the end we have created while loop so our program will run after every 10 seconds

Full code:

So now for the windows user

 we are going to use plyer library we will divide our code in two part in first part we will import all required library and in second part we will write the code for reminder

So here the first step

Step no.1

First we need to install pync in our system so we will use below command

pip install plyer

Now we will use this library

From plyer import notification

import time

Now the second step

Step no.2 

def reminder():

   notification.notify(title = “break reminder”, message=”hello sir please take some break from work”,timeout = 1)

while True:

   reminder()

   time.sleep(10)

 I hope you have understand the whole code

Checkout video tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *