-
Notifications
You must be signed in to change notification settings - Fork 4
/
PKG-INFO
69 lines (51 loc) · 2.01 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Metadata-Version: 1.1
Name: py-task
Version: 1.1
Author: Yugeng Hui
Author-email: hyg at pinae org
Home-page: https://github.com/PinaeOS/py-task
Summary: Task scheduling tools for python
License: Apache 2.0
Description: py-task
============================================
py-task is a task scheduling tools for Python.
- Support repeat trigger
- Support cron trigger
- Easy to use in Python
Installation
--------------
The lastest stable is py-task-1.1.tar.gz
.. code-block:: shell
python setup.py install
Getting Start
--------------
demo for py-task:
.. code-block:: python
from task import task
from task import task_container
from task.job import job
from task.trigger import cron_trigger
class MyJob(job.Job):
def __init__(self):
pass
def execute(self):
print 'Hello now is ' + str(time.time())
cron = '0-59/5 10,15,20 * * * * 2015'
new_task = task.Task('Task', MyJob(), cron_trigger.CronTrigger(cron))
container.add_task(new_task)
container.start_all()
Documentation
--------------
Full documentation is hosted on [HERE]().
Sources are available in the ``docs/`` directory.
License
--------------
py-task is licensed under the Apache License, Version 2.0. See LICENSE for full license text
Keywords: python cron scheduling
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Software Development
Classifier: Topic :: Utilities