work on time-triggered or event-triggered tasks
Project description
#pytasks
用于执行`例行任务`
###Example-1
```
#tasks.py是用于test的py文件
% python pytasks.py
```
###Example-2
*
```
% vim tasks.py
```
*
```
#tasks.py ----do task at 2014-12-12 12:12:00
from datetime import datetime as _date
def task():
##do-something
print 'done-work'
task.schedule = lambda:_date(2014,12,12,12,12)
```
*
```
%python pytasks.py
```
*
done
用于执行`例行任务`
###Example-1
```
#tasks.py是用于test的py文件
% python pytasks.py
```
###Example-2
*
```
% vim tasks.py
```
*
```
#tasks.py ----do task at 2014-12-12 12:12:00
from datetime import datetime as _date
def task():
##do-something
print 'done-work'
task.schedule = lambda:_date(2014,12,12,12,12)
```
*
```
%python pytasks.py
```
*
done
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytasks-1.0.tar.gz
(4.7 kB
view hashes)