Skip to content

Files

Latest commit

85a7265 · Apr 8, 2025

History

History

employee-scheduling

Employee Scheduling (Python)

Schedule shifts to employees, accounting for employee availability and shift skill requirements.

Employee Scheduling Screenshot

Tip

Check out our off-the-shelf model for Employee Shift Scheduling. This model supports many additional constraints such as skills, pairing employees, fairness and more.

Prerequisites

  1. Install Python 3.11+.

  2. Install JDK 17+, for example with Sdkman:

    $ sdk install java

Run the application

  1. Git clone the timefold-quickstarts repo and navigate to this directory:

    $ git clone https://github.com/TimefoldAI/timefold-quickstarts.git
    ...
    $ cd timefold-quickstarts/python/employee-scheduling
  2. Create a virtual environment:

    $ python -m venv .venv
  3. Activate the virtual environment:

    $ . .venv/bin/activate
  4. Install the application:

    $ pip install -e .
  5. Run the application:

    $ run-app
  6. Visit http://localhost:8080 in your browser.

  7. Click on the Solve button.

Test the application

  1. Run tests:

    $ pytest

More information

Visit timefold.ai.