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.7.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

py_cron_schedule-0.0.7-py3-none-any.whl (18.7 kB view hashes)

Uploaded Python 3

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