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


Download files

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

Source Distribution

cront-0.1.0.tar.gz (3.4 kB view hashes)

Uploaded Source

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