Python Crontab Syntax Scheduler.
Project description
Python’s crontab syntax scheduler.
Features
[x] Easy to use and feature-rich API
[x] Scheduling unit is a function
[x] Syntax similar to Linux Crontab timing tasks
[x] Provides millisecond precision
[x] Use multi-process optimization
Usage
shell script $ 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()
API Documentation
[x] [简体中文](./doc/zh-CN/README.md)
[ ] [English](./doc/en-US/README.md)
License
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.
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
py_cron_schedule-0.0.7.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for py_cron_schedule-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea6f55f0305f35699a7d6215f405e86d2096315ea33c67bb8fffd5ddf2e90f87 |
|
MD5 | 13575ef927ee942c25ce0bde1c69a835 |
|
BLAKE2b-256 | 284b5848daedd3cc183338acd1c66f9453675cf72c6b418251f6e774280389f6 |