Registry / aws / aws-cron-expression-validator

aws-cron-expression-validator

JSON →
library1.1.15pypypiunverified

Validates AWS EventBridge cron expressions, which are similar to, but not compatible with Unix style cron expressions. Current version is 1.1.15. Release cadence is irregular.

pip install aws-cron-expression-validator
INSTALL
IMPORT
SIG · AWS-CRON-EXPRESSIO
A
aws-cron-expression-validator
awspythonv1.1.15
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.1.15 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

validate_cron_expression
from aws_cron_expression_validator import validate_cron_expression
from aws_cron_expression_validator import validate_cron_expression

Basic usage: validate an AWS EventBridge cron expression.

from aws_cron_expression_validator import validate_cron_expression cron = 'cron(0 12 * * ? *)' try: validate_cron_expression(cron) print('Valid cron expression') except ValueError as e: print(f'Invalid: {e}')
Debug
Known issues
gotchaThe library expects the full 'cron(...)' string including the 'cron' prefix, not just the inner expression.
fix
Always wrap your expression with 'cron(...)'. Example: 'cron(0 12 * * ? *)'.
affects: all
gotchaDay-of-week and day-of-month fields cannot both be specified as non-'?' in AWS cron. The library enforces this but may not give a clear error.
fix
Use '?' in one of the two fields (day-of-week or day-of-month) as per AWS requirements.
affects: all
deprecatedThe library's validation is string-based and may not catch all AWS-specific constraints (e.g., leap years). Future versions may add more checks.
fix
Be aware that validation is not exhaustive; test your cron expressions against AWS EventBridge.
affects: <2.0.0
Upgrade
Version history
1.1.15latest on PyPI · released Nov 26, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
24
Resources
aws-cron-expression-validator — pip install aws-cron-expression-validator · libregistry