Skip to main content

Task scheduling tools for python

Project description

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

python setup.py install

Getting Start

demo for py-task:

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

Project details


Release history Release notifications | RSS feed

This version

1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-task-1.1.tar.gz (10.2 kB view details)

Uploaded Source

File details

Details for the file py-task-1.1.tar.gz.

File metadata

  • Download URL: py-task-1.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for py-task-1.1.tar.gz
Algorithm Hash digest
SHA256 2e0c40fc6140193b2b2a662ea428b64e2d919c95c0337cdf7e2ec7e784b15b13
MD5 e1734e393b58e9890af49ea8c94e379e
BLAKE2b-256 f3c61a451a19bf553c913f82399481abed032323b32407f60d5df2dba79434e7

See more details on using hashes here.

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