Python scheduling examples from CISP 74 Advanced Python at Mt. San Antonio College.
These examples demonstrate how Python can be used to schedule functions and tasks to run at specific intervals, times, and days.
Demonstrates how to use the schedule library to run a function every five seconds.
The program also writes course information and a timestamp to a text file.
Demonstrates how to use APScheduler to schedule a task at a fixed interval.
In this example, a simulated machine-learning task runs every three hours.
Demonstrates how to schedule multiple functions using different scheduling options.
The examples include:
- Every 2 minutes
- Every hour
- Every day at midnight
- Every 5-10 minutes
- Every Monday
- Every Tuesday at 18:00
- Python 3
- schedule
- APScheduler
Install the required libraries with:
pip install -r requirements.txtCISP 74 - Advanced Python Mt. San Antonio College
These programs were created as classwork examples while learning Python task scheduling and automation.