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.

Files for pytasks, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size pytasks-1.0.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page