Skip to content

About

Python scheduling examples from CISP 74 Advanced Python at Mt. San Antonio College.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

CISP 74 - Scheduling Tasks Examples

Python scheduling examples from CISP 74 Advanced Python at Mt. San Antonio College.

Description

These examples demonstrate how Python can be used to schedule functions and tasks to run at specific intervals, times, and days.

Examples

schedule_basic.py

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.

apscheduler_example.py

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.

schedule_multiple_tasks.py

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

Requirements

  • Python 3
  • schedule
  • APScheduler

Install the required libraries with:

pip install -r requirements.txt

Course

CISP 74 - Advanced Python Mt. San Antonio College

Purpose

These programs were created as classwork examples while learning Python task scheduling and automation.

About

Python scheduling examples from CISP 74 Advanced Python at Mt. San Antonio College.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages