Skip to main content

tornado-crontab is a library that can make the task apps like crontab.

Travis CI AppVeyor Code Climate Requirements Status

Installation

Automatic installation:

$ pip install tornado-crontab

torando-crontab is listed in PyPI and can be installed with pip or easy_install.

Manual installation:

$ git clone https://github.com/gaujin/tornado-crontab.git
$ cd tornado-crontab
$ python setup.py install

tornado-crontab source code is hosted on GitHub

Usage

Here is an example every minute task app:

from __future__ import print_function
import functools
import tornado.ioloop
import tornado_crontab

def hello_crontab(value):

    print("Hello, {0}".format(value))

if __name__ == "__main__":

    _func = functools.partial(hello_crontab, *["crontab"])
    tornado_crontab.CronTabCallback(_func, "* * * * *").start()
    tornado.ioloop.IOLoop.current().start()

decorator style task app:

from __future__ import print_function
import tornado.ioloop
from tornado_crontab import crontab

@crontab("* * * * *")
def hello_crontab(value):

    print("Hello, {0}".format(value))

if __name__ == "__main__":

    hello_crontab("crontab")
    tornado.ioloop.IOLoop.current().start()

Prerequisites

tornado-crontab 0.4.x or earlier runs on Tornado 4.x or earlier.

Future policy of io_loop argument

io_loop argument to function and constructor is deprecated for 0.4.0 and removed for 0.5.0.
About this policy is based on the policy already indicated in Tornado, tornado-crontab also made the same policy.

Using

License

See the LICENSE file for specific terms.

Metadata

Release files for tornado-crontab 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tornado-crontab 0.4.0
File Size Uploaded Provenance Actions
tornado-crontab-0.4.0.tar.gz 4.3 kB Without provenance Details for tornado-crontab-0.4.0.tar.gz

Release files / tornado-crontab-0.4.0.tar.gz

Download URL tornado-crontab-0.4.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ca9e5c4c67429c0715306cfb7d083c0598f2ad85a04c44b3e68919fee1bd6b1e
BLAKE2b-256 checksum
How to use checksums
e021090cf0904635cef3078585994ddd9410e12c6d8bcfb77f7f787a848ef78c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for tornado-crontab 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page