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.

Filename, size & hash SHA256 hash help File type Python version Upload date
pytasks-1.0.tar.gz (4.7 kB) Copy SHA256 hash SHA256 Source None Aug 27, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page