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
[ ] 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.3.tar.gz
.
File metadata
- Download URL: py_cron_schedule-0.0.3.tar.gz
- Upload date:
- Size: 4.6 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.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70b37e89d4d9fdd6ef1f221c848159bbe62b6c1acec4629de83fd691502347ba |
|
MD5 | 3b77e75b479c340c193d25f74ef3d6e3 |
|
BLAKE2b-256 | 1c401529e0e638ffdb956eb9f19c31bf8d414f1807e83821401861ccce5dc0b5 |
File details
Details for the file py_cron_schedule-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: py_cron_schedule-0.0.3-py3-none-any.whl
- Upload date:
- Size: 18.4 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.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd94f94ebbb58ed4eb283016aadca8817b27f095035e3a6ca2eda2dbcde37ed7 |
|
MD5 | 4347c0c8e056bd57411852ed3ffe540e |
|
BLAKE2b-256 | 58c298d5e320c4394ab53c4f28aa00ea47fc94354bd4eddfce6bf2107fcd9bc9 |