/cron-parser

Standard cron parser.

Primary LanguagePythonMIT LicenseMIT

Cron Parser

A parser for cron expressions, it only supports the standard cron format as described at https://linux.die.net/man/5/crontab.

Example

from cron_parser import parse_expression

expression = parse_expression("15 14 1 * *")

it = expression.iterator()

for i in range(5):
    print(next(it))
2022-11-01 14:15:00
2022-12-01 14:15:00
2023-01-01 14:15:00
2023-02-01 14:15:00
2023-03-01 14:15:00

To-do