#birthday

Опубликовано: 01 Март 2026
на канале: Mastering Technology
80
11

‪@MasterTechnology-ic2ds‬ : #beginners #projectbudget
Birthday Reminder Notification

Requirement of Python Modules:
1. Plyer
2. Time

Plyer is used to get notifications.


Code:

import time
from plyer import notification
birthdayFile = 'C:/Users/Lenovo/Desktop/File.txt'

def checkTodaysBirthdays():
fileName = open(birthdayFile, 'r')
today = time.strftime('%m%d')
for line in fileName:
line = line.split(' ')
if(today==line[0]):
notification.notify( title = 'Birthday Today',
message = line[1], app_icon= 'C:/Users/Lenovo/Desktop/bith.ico')
timeout=50


checkTodaysBirthdays()

#plyer #time #module #notification #message #desktop

#like #share #subscribemychannel