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
Built Distribution
File details
Details for the file py_cron_schedule-0.0.7.tar.gz
.
File metadata
- Download URL: py_cron_schedule-0.0.7.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eb77dcf325276b412b6e3ffef5ae63e41f0491c510d3f050fd97db8a8ce4b71 |
|
MD5 | 46a1b54c01b8aa6a8c24cbe185dc79b2 |
|
BLAKE2b-256 | ea4d516a460a4ebce4fe52757d383ccaa5b0173069216fd5d2bfc9f248c9726e |
File details
Details for the file py_cron_schedule-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: py_cron_schedule-0.0.7-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea6f55f0305f35699a7d6215f405e86d2096315ea33c67bb8fffd5ddf2e90f87 |
|
MD5 | 13575ef927ee942c25ce0bde1c69a835 |
|
BLAKE2b-256 | 284b5848daedd3cc183338acd1c66f9453675cf72c6b418251f6e774280389f6 |