Miksus / rocketry

Modern scheduling library for Python
https://rocketry.readthedocs.io
MIT License
3.26k stars 105 forks source link

ENH: Add cron scheduler #73

Closed Miksus closed 2 years ago

Miksus commented 2 years ago

Add Cron style conditions.

This PR also has improvements on underlying time period mechanics most notably:

codecov-commenter commented 2 years ago

Codecov Report

Merging #73 (c8a7028) into master (b837b8b) will increase coverage by 0.28%. The diff coverage is 94.00%.

@@            Coverage Diff             @@
##           master      #73      +/-   ##
==========================================
+ Coverage   90.81%   91.10%   +0.28%     
==========================================
  Files          87       88       +1     
  Lines        4050     4339     +289     
==========================================
+ Hits         3678     3953     +275     
- Misses        372      386      +14     
Impacted Files Coverage Δ
rocketry/conds/__init__.py 100.00% <ø> (ø)
rocketry/core/time/__init__.py 100.00% <ø> (ø)
rocketry/parse/time.py 100.00% <ø> (ø)
rocketry/core/time/base.py 84.14% <88.88%> (+3.22%) :arrow_up:
rocketry/core/time/anchor.py 87.71% <90.38%> (-1.26%) :arrow_down:
rocketry/pybox/time/interval.py 93.65% <92.00%> (-0.80%) :arrow_down:
rocketry/time/interval.py 96.29% <99.00%> (+5.82%) :arrow_up:
rocketry/conditions/api.py 96.87% <100.00%> (+0.18%) :arrow_up:
rocketry/conditions/task/task.py 91.97% <100.00%> (+0.58%) :arrow_up:
rocketry/core/time/utils.py 83.14% <100.00%> (ø)
... and 12 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.