Skip to main content

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

Project description

# cront

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

## Installation

Automatic installation:
```bash
$ pip install cront
```

cront is listed in [PyPI](https://pypi.python.org/pypi/cront) and can be installed with pip or easy_install.

Manual installation:
```bash
$ git clone https://github.com/asmodius/cront.git
$ cd cront
$ python setup.py install
```

cront source code is [hosted on GitHub](https://github.com/asmodius/cront)

## Usage

Here is a simple Tornado app:

```python
from __future__ import print_function
import tornado.web
import tornado.ioloop
from cront import cron_task

@cron_task("* * * * *")
def hello_crontab(app):
print("Hello, {0}".format(app))

if __name__ == "__main__":
app = tornado.web.Application()
cron_task.start(app)
tornado.ioloop.IOLoop.current().start()
```

## Using

* [Tornado](http://www.tornadoweb.org/)

## License

* cront license under the [MIT license](https://github.com/gaujin/tornado-crontab/blob/master/LICENSE).
* [Tornado is licensed under the Apache license](https://github.com/tornadoweb/tornado/blob/master/LICENSE).

Project details


Release history Release notifications

This version

0.1.0

Download files

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

Files for cront, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size cront-0.1.0.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page