Python's crontab syntax scheduler.
- Easy to use and feature-rich API
- Scheduling unit is a function
- Syntax similar to Linux Crontab timing tasks
- Provides millisecond precision
- Use multi-process optimization
$ pip install py-cron-schedule
from py_cron_schedule import CronSchedule, CronFormatError
if __name__ == '__main__':
cs = CronSchedule()
cs.add_task("ms", "* * * * * * *", lambda: print("Every Millsecond"))
cs.add_task("sec", "* * * * * *", lambda: print("Every Second"))
cs.add_task("min", "* * * * *",lambda :print("Every Minute"))
cs.add_task("hour", "0 * * * *",lambda :print("Every Hour"))
cs.start()
- Under the Creative Commons GPL-3.0 Unported license. See the LICENSE file for details.
- Under the Anti 996 License. See the Anti 996 LICENSE file for details.