pyscheduler icon indicating copy to clipboard operation
pyscheduler copied to clipboard

Create scheduled tasks at runtime easily (Django, Flask, Bottle etc.)

pyscheduler

Task Scheduler

Create scheduled tasks at runtime easily.

Installation

pip install python-scheduler

Example

from pyscheduler import schedule

# crawl_task runs in every 2 minutes
@schedule('*/2 * * * *')
def crawl_task():
    print 'crawl task'

Important

It won't definitely create any cronjob on the os level. All tasks will be executed on runtime.

Every cron syntax can be used.

Concurrency are not considered during development. That's why, it is so lightweight library for single process applications for now.