Job scheduling for humans.
Project Links
Meta
Author: Daniel Bader
Maintainer: Sijmen Huizenga
Requires Python: >=3.7
Classifiers
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Development Status
- 5 - Production/Stable
Operating System
- OS Independent
Programming Language
- Python
- Python :: 3
- Python :: 3.7
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
Natural Language
- English
Python job scheduling for humans. Run Python functions (or any other callable) periodically using a friendly syntax.
A simple to use API for scheduling jobs, made for humans.
In-process scheduler for periodic jobs. No extra processes needed!
Very lightweight and no external dependencies.
Excellent test coverage.
Tested on Python and 3.7, 3.8, 3.9, 3.10, 3.11, 3.12
Usage
$ pip install schedule
import schedule
import time
def job():
print("I'm working...")
schedule.every(10).seconds.do(job)
schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("10:30").do(job)
schedule.every(5).to(10).minutes.do(job)
schedule.every().monday.do(job)
schedule.every().wednesday.at("13:15").do(job)
schedule.every().day.at("12:42", "Europe/Amsterdam").do(job)
schedule.every().minute.at(":17").do(job)
def job_with_argument(name):
print(f"I am {name}")
schedule.every(10).seconds.do(job_with_argument, name="Peter")
while True:
schedule.run_pending()
time.sleep(1)
Documentation
Schedule’s documentation lives at schedule.readthedocs.io.
Meta
Daniel Bader - @dbader_org - mail@dbader.org
Inspired by Adam Wiggins’ article “Rethinking Cron” and the clockwork Ruby module.
Distributed under the MIT license. See LICENSE.txt for more information.
1.2.2
May 25, 2024
1.2.1
Oct 01, 2023
1.2.0
Apr 10, 2023
1.1.0
Apr 10, 2021
1.0.0
Jan 30, 2021
0.6.0
Jan 21, 2019
0.5.0
Nov 16, 2017
0.4.3
Jun 10, 2017
0.4.2
Nov 29, 2016
0.4.1
Nov 28, 2016
0.4.0
Nov 28, 2016
0.3.2
Jul 03, 2015
0.3.1
Sep 04, 2014
0.3.0
Jun 14, 2014
0.2.1
Nov 21, 2013
0.2.0
Nov 09, 2013
0.1.11
Jul 30, 2013
0.1.10
Jun 07, 2013
0.1.9
May 27, 2013
0.1.8
May 21, 2013
0.1.7
May 20, 2013
0.1.6
May 20, 2013
0.1.5
May 20, 2013
0.1.4
May 20, 2013
0.1.3
May 19, 2013
0.1.2
May 19, 2013
0.1.1
May 19, 2013