skillfed

aws-cron-expression-validator

ValidatesAWS EventBridge cron expressions, which are similar to, but not compatible with Unix style cron expressions

aws-cron-expression-validator v1.1.15 81.1K downloads/30d#14,247 on PyPI26
Permissive license Active released

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-validator

uv

uv add aws-cron-expression-validator

poetry

poetry add aws-cron-expression-validator

Installing 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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

aws eventbridge cron validationvalidate cron expressionsaws cron expression parsereventbridge schedule validatorcron syntax checker
aws-integrationvalidation

More Utilities packages