Skip to main content

Task scheduler with automatic resource leveling.

Project description

Task scheduler with automatic resource leveling

PyPI Build Status

The task scheduler reads one or more JSON configuration files, that includes:

  • project general information
  • list of resources
  • list of tasks.

The output is a work plan, with the tasks automatically assigned to resources ("resource leveling"), as JSON format.

The goal is to find the best possible end date (as soon as possible).

The internal algorithm follows these rules:

  • efficient use of resources, if possible 100%, with no overload at all
  • long tasks may be carried out in parallel by several people.

Dependencies

Taskshed requires Python ≥ 3.7 and:

You can install dependencies in a virtual environment with:

pip install -r requirements.txt

Usage

The input data is written in JSON format. One or more files are accepted, each one overwrites any file previously loaded.

Content of files can be read from standard input or filenames are allowed as command line arguments. Both can be used at same time.

The command tasksched allows two actions:

  • workplan: build an optimized work plan using project/resources/tasks info in input; the output is JSON data
  • text: convert output of workplan action (JSON data) to text for display in the terminal (colors and unicode chars are used by default but optional).

See file project_complete.json for an example of input JSON files with all possible fields and file workplan_complete.json for an example of output workplan, as JSON.

Example: use of another program extract-tasks to extract tasks from a ticketing tool and two configuration files for the project and resources, build the work plan and convert it to text for display:

$ extract-tasks | tasksched workplan project.json team.json | tasksched text

Copyright

Copyright © 2020 Sébastien Helleu

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tasksched-0.1.0.tar.gz (12.4 kB view hashes)

Uploaded Source

Built Distributions

tasksched-0.1.0-py3.9.egg (35.7 kB view hashes)

Uploaded Source

tasksched-0.1.0-py3-none-any.whl (19.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page