Create scheduled tasks at runtime easily
Project description
# pyscheduler
Task Scheduler
Create scheduled tasks at runtime easily.
# Installation
```bash
pip install python-scheduler
```
# Example
```bash
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.
Task Scheduler
Create scheduled tasks at runtime easily.
# Installation
```bash
pip install python-scheduler
```
# Example
```bash
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-scheduler-0.0.1.tar.gz
(2.8 kB
view hashes)