quartz-cron-checker
Simple Python library to check if a Quartz cron expression is valid.
What it is and what it does
quartz-cron-checker is a lightweight validator for Quartz cron expressions in Python. It parses and validates 6- or 7-field cron strings (second, minute, hour, day-of-month, month, day-of-week, and optional year) against the full Quartz specification, including support for special characters like `*`, `?`, `L`, `W`, and `#`, as well as named months and days. It enforces mutual exclusivity between day-of-month and day-of-week fields and provides detailed error messages when validation fails.
The package offers both object-oriented and functional APIs: you can parse a cron string into a QuartzCronChecker object and call validate() on it, or use standalone functions like validate_cron_string() and validate_day_of_month() to check individual fields. It has no runtime dependencies and requires Python 3.10 or later.
Use it for:
- Validate cron expressions before passing them to a Quartz scheduler or job queue system.
- Parse and inspect individual cron fields (second, minute, hour, etc.) for configuration validation.
- Enforce strict Quartz cron syntax in a configuration file or API that accepts cron schedules.
- Catch malformed cron expressions early with detailed error messages during application startup.
- Build a cron expression builder or editor that needs to validate user input against Quartz rules.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Validates Quartz-style cron expressions against the full Quartz specification, including 6- or 7-field formats, special characters, named values, and field-level constraints.
Yes, if you need strict Quartz cron validation and are comfortable with aging maintenance. The package is lightweight, dependency-free, and covers the full Quartz spec including special characters and named values. However, verify the license terms first (currently unclear in metadata) and be aware that no active development is visible—bug fixes or feature updates are unlikely without a maintainer revival.
Install
quartz-cron-checker on PyPI
pip
pip install quartz-cron-checkeruv
uv add quartz-cron-checkerpoetry
poetry add quartz-cron-checkerInstalling quartz-cron-checker
Before you install
Low install friction—pure Python wheel with no runtime dependencies. Maintenance status is aging: last release was 442 days ago with no recent commits visible, so expect no active development or rapid bug fixes.
License in practice
License status is unclear—no SPDX identifier or raw license text provided. Before adopting in a commercial or copyleft context, verify the actual license terms from the project source.
Quickstart
from quartz_cron_checker import QuartzCronChecker, validate_cron_string
# Parse and validate
cron = QuartzCronChecker.from_cron_string("0 0 12 ? * MON-FRI")
cron.validate() # Raises if invalid
# Or validate directly
result = validate_cron_string("0 0 12 ? * MON-FRI") # Returns True
Requires Python 3.10 or later.
Verify before relying
- Whether the project is actively maintained or has been abandoned despite the aging status.
- Actual license terms—SPDX and raw license fields are both null in the metadata.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 442 days since the last release |
| First released | |
| Downloads | 101,258/month — #12,950 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: quartz_cron_checker-0.2.1-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
aws-cron-expression-validatorValidates AWS EventBridge cron expressions,…
permissive · top 15,000 on PyPI
cronexEvaluates cron expressions to determine if a…
permissive · top 15,000 on PyPI
cronsimParses and evaluates cron expressions to find…
permissive · top 5,000 on PyPI
cron-validatorValidates Unix cron expressions, matches them…
permissive · top 5,000 on PyPI
tzcronParse and iterate over cron/quartz schedule…
permissive · top 15,000 on PyPI
cron-schedule-triggersDetermines the next execution times of a…
permissive · top 15,000 on PyPI
cronitercroniter iterates over datetime objects using…
permissive · top 1,000 on PyPI
crontabParses crontab schedule expressions and…
copyleft · top 5,000 on PyPI
pyawscronParses and iterates over AWS CloudWatch cron…
permissive · top 15,000 on PyPI
aws-croniterParses, validates, and calculates occurrences…
permissive · top 15,000 on PyPI