Skip to main content

Python Crontab Syntax Scheduler.

Project description

Travis PyPI Anti 996 License: GPL v3

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

  1. Under the Creative Commons GPL-3.0 Unported license. See the LICENSE file for details.

  2. 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.6.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

py_cron_schedule-0.0.6-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file py_cron_schedule-0.0.6.tar.gz.

File metadata

  • Download URL: py_cron_schedule-0.0.6.tar.gz
  • Upload date:
  • Size: 4.7 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.1 CPython/3.7.3

File hashes

Hashes for py_cron_schedule-0.0.6.tar.gz
Algorithm Hash digest
SHA256 832de12574e4630791d56a41afca51f9b14e19349e947c16695a03c9d2ff5e21
MD5 c6185dcb2846c31f3d5ccea5e24dd0a7
BLAKE2b-256 16911c6bbbe33b365de648719ac95f5c2eaa0a3a90ed8fd4fa57d856e94bbdea

See more details on using hashes here.

File details

Details for the file py_cron_schedule-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: py_cron_schedule-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 18.6 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.1 CPython/3.7.3

File hashes

Hashes for py_cron_schedule-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 07d595f3c353dc956179bb3e7a723f95697d192fa3b9cce17292eff12615edfa
MD5 f84500442d33900ca54a1aab6ac8603b
BLAKE2b-256 bc29ad7e08e2706a98af2e48dea787ab47d4066ef61e904f84f5a49530c35912

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page