Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dbader/schedule
Python job scheduling for humans.
https://github.com/dbader/schedule
Last synced: 20 days ago
JSON representation
Python job scheduling for humans.
- Host: GitHub
- URL: https://github.com/dbader/schedule
- Owner: dbader
- License: mit
- Created: 2013-05-19T12:51:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-05-20T11:35:14.000Z (6 months ago)
- Last Synced: 2024-05-20T12:39:41.632Z (6 months ago)
- Language: Python
- Homepage: https://schedule.readthedocs.io/
- Size: 369 KB
- Stars: 11,525
- Watchers: 212
- Forks: 950
- Open Issues: 157
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- License: LICENSE.txt
- Authors: AUTHORS.rst
Awesome Lists containing this project
- my-awesome-starred - schedule - Python job scheduling for humans. (Python)
- stars - dbader/schedule
- best-of-python - GitHub - 34% open · ⏱️ 25.05.2024): (Infrastructure & DevOps)
- my-awesome-github-stars - dbader/schedule - Python job scheduling for humans. (Python)
- awesome-python-resources - GitHub - 31% open · ⏱️ 23.04.2022): (任务调度)
- awesome-github-star - schedule
- awesome-starts - dbader/schedule - Python job scheduling for humans. (Python)
- awesome-list - schedule - Python job scheduling for humans. (Desktop App Development / Python Toolkit)
- starred-awesome - schedule - Python job scheduling for humans. (Python)
- my-awesome - dbader/schedule - 05 star:11.8k fork:1.0k Python job scheduling for humans. (Python)
- StarryDivineSky - dbader/schedule
- stars - dbader/schedule - Python job scheduling for humans. (Python)
- stars - dbader/schedule - Python job scheduling for humans. (Python)
README
`schedule `__
===============================================.. image:: https://github.com/dbader/schedule/workflows/Tests/badge.svg
:target: https://github.com/dbader/schedule/actions?query=workflow%3ATests+branch%3Amaster.. image:: https://coveralls.io/repos/dbader/schedule/badge.svg?branch=master
:target: https://coveralls.io/r/dbader/schedule.. image:: https://img.shields.io/pypi/v/schedule.svg
:target: https://pypi.python.org/pypi/schedulePython 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.12Usage
-----.. code-block:: bash
$ pip install schedule
.. code-block:: python
import schedule
import timedef 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 `_ - [email protected]
Inspired by `Adam Wiggins' `_ article `"Rethinking Cron" `_ and the `clockwork `_ Ruby module.
Distributed under the MIT license. See `LICENSE.txt `_ for more information.
https://github.com/dbader/schedule