Schedule

pip install schedule
import schedule

def action():
    pass

sch = schedule.every(10).minutes.do(action)

while True:
    schedule.run_pending()
    time.sleep(1)

Last updated