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).
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 | RSS feed
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 details)
File details
Details for the file cront-0.1.0.tar.gz
.
File metadata
- Download URL: cront-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2e478d81cc7a0f0b7c050cf938f885448c386aed1b4a494cc202bc71f9afa34 |
|
MD5 | fda2e08bd583c5985bac4f26093374c8 |
|
BLAKE2b-256 | 1e7f4d627955c9e1ef56cf83c2a07d2176603c663516a5851e75fe5fe1ca1970 |