<commit_before>===============
tornado-crontab
===============

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

|travis|

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, {}".format(value))
    
   if __name__ == "__main__":
    
       _func = functools.partial(hello_crontab, *["crontab"])
       tornado_crontab.CronTabCallback(_func, "* * * * *").start()
       tornado.ioloop.IOLoop.instance().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, {}".format(value))

   if __name__ == "__main__":

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

Using
=====

* `Tornado <http://www.tornadoweb.org/>`_
* `crontab <https://github.com/josiahcarlson/parse-crontab/>`_

License
=======

* tornado-crontab 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>`_.
* `crontab is licensed under the LGPL license version 2.1 <https://github.com/josiahcarlson/parse-crontab/blob/master/LICENSE>`_.

See the LICENSE file for specific terms.

.. |travis| image:: https://travis-ci.org/gaujin/tornado-crontab.svg?branch=master
   :target: https://travis-ci.org/gaujin/tornado-crontab<commit_msg>Add Requires.IO badge<commit_after>===============
tornado-crontab
===============

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

|travis| |requires|

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, {}".format(value))
    
   if __name__ == "__main__":
    
       _func = functools.partial(hello_crontab, *["crontab"])
       tornado_crontab.CronTabCallback(_func, "* * * * *").start()
       tornado.ioloop.IOLoop.instance().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, {}".format(value))

   if __name__ == "__main__":

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

Using
=====

* `Tornado <http://www.tornadoweb.org/>`_
* `crontab <https://github.com/josiahcarlson/parse-crontab/>`_

License
=======

* tornado-crontab 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>`_.
* `crontab is licensed under the LGPL license version 2.1 <https://github.com/josiahcarlson/parse-crontab/blob/master/LICENSE>`_.

See the LICENSE file for specific terms.

.. |travis| image:: https://travis-ci.org/gaujin/tornado-crontab.svg?branch=master
   :target: https://travis-ci.org/gaujin/tornado-crontab

.. |requires|:: https://requires.io/github/gaujin/tornado-crontab/requirements.svg?branch=master
     :target: https://requires.io/github/gaujin/tornado-crontab/requirements/?branch=master
     :alt: Requirements Status
{'fraction_non_alphanumeric': 0.1529112492933861, 'fraction_numerical': 0.0011305822498586771, 'mean_word_length': 3.808423913043478, 'pattern_counts': {'":': 4, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 14, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '40393', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1222, 'n_words': 237}