Skip to main content

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

Project description

AWSCronExpressionValidator

Validates these AWS EventBridge cron expressions, which are similar to, but not compatible with Unix style cron expressions;

Field Values Wildcards
Minute 0-59 , - * /
Hour 0-23 , - * /
Day-of-month 1-31 , - * ? / L W
Month 1-12 or JAN-DEC , - * /
Day-of-week 1-7 or SUN-SAT , - * ? L #
Year 1970-2199 , - * /

This was inspired by Niloy Chakraborty's AWSCronValidator.py project.

Installing

To install the library run;

pip install aws-cron-expression-validator

Usage

from aws_cron_expression_validator.validator import AWSCronExpressionValidator

my_expression = "0 18 ? * MON-FRI *"
try:
    AWSCronExpressionValidator.validate(my_expression)
except ValueError as e:
    print(f"Oh no! My expression was invalid: {e}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_cron_expression_validator-0.0.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file aws_cron_expression_validator-0.0.3.tar.gz.

File metadata

File hashes

Hashes for aws_cron_expression_validator-0.0.3.tar.gz
Algorithm Hash digest
SHA256 39743fc65bb641af409bc70b3acdbb56e82e11d6497e8c5388981a5020a5df9e
MD5 f7f35d36482ae8d129b1760e6d2a21f5
BLAKE2b-256 99fc54fb50c51766f4ebdd7ce686f471cc6b2fcd4a906be8f46e9ae123fe48e5

See more details on using hashes here.

File details

Details for the file aws_cron_expression_validator-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_cron_expression_validator-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 019d27577b52d52ba9478778a4a6b2ade342e59fb7228b93c40c2285f702ab7d
MD5 8c5933ef97eba50ec3aceb5c79a6cf29
BLAKE2b-256 5651e04e10f4f1d27696c6cbc50cde1906a3853bf3f75c6bba58b091ed9bde99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page