Skip to content

Commit

Permalink
Upd: release 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kaka2507 committed Apr 4, 2022
1 parent 59e1839 commit 7b76984
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ while True:
print("Now is the next scheduled time.")
```

**5. Use extended cron rules based on AWS EventBridge rules**
**5. Use extended cron rules based on AWS EventBridge rules** (from v1.0.6)

The cron validator supports partially extended rules based on the Amazon EvenBridge rule set. [More info.](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html#eb-cron-expressions)

Expand All @@ -107,12 +107,13 @@ Currently we support:
```python
from cron_validator import CronValidator
from cron_validator.util import str_to_datetime
from cron_validator.regexes import Version

dt_str = '2023-04-28 1:00'
dt = str_to_datetime(dt_str)

assert CronValidator.match_datetime("* * * * 30W", dt, , version=Version.EB)
assert CronValidator.match_datetime("* * * * 5L", dt, , version=Version.EB)
assert CronValidator.match_datetime("* * * * 30W", dt, version=Version.EB)
assert CronValidator.match_datetime("* * * * 5L", dt, version=Version.EB)

dt_str = "2022-02-28 1:00"
dt = str_to_datetime(dt_str)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
setup(
name="cron-validator",
packages=["cron_validator"],
version="1.0.5",
version="1.0.6",
license="MIT",
description="Unix cron implementation by Python",
long_description=long_description,
Expand All @@ -21,6 +21,6 @@
author_email="[email protected]",
url="https://github.com/vcoder4c/cron-validator",
keywords=["cron", "python", "cron expression validator", "cron expression iterator", "cron scheduler"],
download_url="https://github.com/vcoder4c/cron-validator/archive/v1.0.5.tar.gz",
download_url="https://github.com/vcoder4c/cron-validator/archive/v1.0.6.tar.gz",
install_requires=["python_dateutil", "pytz"],
)

0 comments on commit 7b76984

Please sign in to comment.