aws-cron-expression-validator
ValidatesAWS EventBridge cron expressions, which are similar to, but not compatible with Unix style cron expressions
What it is and what it does
This package validates cron expressions in the format used by AWS EventBridge, which differs from standard Unix cron in field count (six instead of five), range constraints, and wildcard support. EventBridge cron expressions use minute, hour, day-of-month, month, day-of-week, and year fields, with wildcards including *, /, -, and , plus special operators like L, W, and # for day-of-month and day-of-week fields.
The validator raises specific exceptions (e.g., AWSCronExpressionMinuteError) for invalid fields and generic ValueError for malformed expressions. It has no runtime dependencies and requires Python 3.10 or later. The package is small, actively maintained, and suitable for applications that need to validate EventBridge schedules before submission or for testing scheduling logic.
Use it for:
- Validate cron expressions before deploying EventBridge rules to catch syntax errors early.
- Build a CLI tool or web form that accepts cron schedules and rejects invalid AWS expressions.
- Test event scheduling logic in unit tests by validating expressions your application generates.
- Migrate Unix cron jobs to AWS EventBridge with confidence that expressions conform to AWS syntax.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Validates AWS EventBridge cron expressions, which use a six-field format with wildcards and constraints that differ from Unix cron syntax.
Yes. If you work with AWS EventBridge schedules, this lightweight validator saves debugging time by catching expression errors before deployment. No dependencies, permissive license, active maintenance, and a clear API make it a low-risk addition to projects that need cron validation.
Install
aws-cron-expression-validator on PyPI
pip
pip install aws-cron-expression-validatoruv
uv add aws-cron-expression-validatorpoetry
poetry add aws-cron-expression-validatorInstalling aws-cron-expression-validator
Before you install
Low friction: pure Python, no runtime dependencies, distributed as a wheel. Actively maintained with recent releases; last commit 2026-04-14.
License in practice
MIT license (permissive); you can use, modify, and distribute this package freely in commercial and private projects.
Quickstart
pip install aws-cron-expression-validator
from aws_cron_expression_validator.validator import AWSCronExpressionValidator
AWSCronExpressionValidator.validate("0 180 ? * MON-FRI *")
Requires Python 3.10 or later.
Verify before relying
- Whether the validator catches all edge cases in AWS's wildcard semantics (L, W, # operators for day-of-month and day-of-week fields).
- Performance characteristics when validating large batches of expressions.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 261 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 81,115/month — #14,247 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cron_expression_validator-1.1.15-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
quartz-cron-checkerValidates Quartz-style cron expressions against…
unclear · top 15,000 on PyPI
aws-croniterParses, validates, and calculates occurrences…
permissive · top 15,000 on PyPI
pyawscronParses and iterates over AWS CloudWatch cron…
permissive · top 15,000 on PyPI
cron-validatorValidates Unix cron expressions, matches them…
permissive · top 5,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
tzcronParse and iterate over cron/quartz schedule…
permissive · top 15,000 on PyPI
cron-descriptorConverts cron expressions into human-readable…
permissive · top 1,000 on PyPI
cron-schedule-triggersDetermines the next execution times of a…
permissive · top 15,000 on PyPI
aws-cdk.aws-eventsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI