Cron scheduler.


Keywords
cron, crontab, schedule, python
License
MIT
Install
pip install cronquot==0.1.4

Documentation

cronquot

PyPI version Build Status Code Climate Coverage Status Documentation Status

cronquot is a command/library for quoting cron execution.
You can create a list of cron scheduler with this tool. Only you should do is preparing your cron data.

Usage

Preparation

To run cronquot, you have to make directory and put cron files exported from crontab -l.
File names should server names like below.

$ tree
crontab/
├── server1
├── server2
└── web1

CUI

From command, you can use only one command.

# You can set start time and end time.
$ cronquot -s 20170201010000 -e 20170201020000 -d crontab

After this, result file will export as 'result.csv'.

Python sample source code

You can use this with only python2.7

from cronquot.cronquot import Cron

c = Cron(start='20170101000000',
         end='20170101101000')
for cc in c:
      print(cc)

Installation

$ pip install cronquot

Licence

  • MIT