croner 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- croner/__init__.py +17 -0
- croner/_cron.py +937 -0
- croner/_describe.py +220 -0
- croner/_errors.py +7 -0
- croner/_pattern.py +495 -0
- croner/_zone.py +147 -0
- croner/py.typed +0 -0
- croner-1.0.0.dist-info/METADATA +266 -0
- croner-1.0.0.dist-info/RECORD +11 -0
- croner-1.0.0.dist-info/WHEEL +4 -0
- croner-1.0.0.dist-info/licenses/LICENSE +22 -0
croner/__init__.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Croner - cron for Python.
|
|
2
|
+
|
|
3
|
+
A Python port of croner (JavaScript) and croner-rust: parse and evaluate cron
|
|
4
|
+
patterns, enumerate runs across time zones and DST, and schedule functions.
|
|
5
|
+
|
|
6
|
+
>>> from croner import Cron
|
|
7
|
+
>>> job = Cron("0 12 * * MON-FRI", timezone="Europe/Stockholm")
|
|
8
|
+
>>> job.next_run() # doctest: +SKIP
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from ._cron import Cron, CronIterator, scheduled_jobs
|
|
12
|
+
from ._errors import CronError
|
|
13
|
+
from ._pattern import CronPattern
|
|
14
|
+
|
|
15
|
+
__version__ = "1.0.0"
|
|
16
|
+
|
|
17
|
+
__all__ = ["Cron", "CronError", "CronIterator", "CronPattern", "scheduled_jobs", "__version__"]
|