Skip to main content

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

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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page