Skip to content

A lightweight and fast python task scheduling library without any 3rd party dependency.

Notifications You must be signed in to change notification settings

nasir-shah-cloud/pyScheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

pyscheduler

A lightweight and fast python task scheduling library without any 3rd party dependency.

Usage

from scheduler import Scheduler

def mytask(id):
    print(f'Task/{id} is running')


def schedule_another_task(id):
    sched.do(mytask,args=(id,)).now().repeat().every(1).second()

sched = Scheduler()

sched.do(mytask,args=(1,)).now()
sched.do(mytask,args=(2,)).at("20:55:45").repeat(3).every(2).second()
sched.do(mytask,args=(3,)).at("20:55:45").repeat().every(5).second()
sched.do(mytask,args=(4,)).at("20:55:45").repeat().every().minute()
sched.do(schedule_another_task, args=(5,)).now()
sched.run()

About

A lightweight and fast python task scheduling library without any 3rd party dependency.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages