Skip to content

Cron string validation #126

@woodruffw

Description

@woodruffw

This is another nice-to-have: a crontab(5) validator.

Some challenges: crontab(5) has a standard minimal language, but lots of cron implementations provide extensions like @hourly, as well as custom field values.

If third party dependencies aren't an issue, both crontab and croniter provide validation methods:

from crontab import CronSlices
CronSlices.is_valid("* * * * *")
import croniter
croniter.is_valid("* * * * *")

It looks like the former supports more extensions than the latter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIssue/PR: A new featureoutdatedIssue/PR: Open for more than 3 months

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions