semvec/pypi-packages huggingface dataset:
py-task 1.1
Task scheduling tools for python
License: Apache 2.0
Keywords: python cron scheduling

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.0.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