cront-0.1.0
توضیحات
cront is a library that can make the task apps like crontab.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cront-0.1.0 |
| نام | cront |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Asmodius |
| ایمیل نویسنده | asmodius.a@gmail.com |
| آدرس صفحه اصلی | https://github.com/asmodius/cront |
| آدرس اینترنتی | https://pypi.org/project/cront/ |
| مجوز | MIT |
# 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).
نحوه نصب
نصب پکیج whl cront-0.1.0:
pip install cront-0.1.0.whl
نصب پکیج tar.gz cront-0.1.0:
pip install cront-0.1.0.tar.gz