Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.7 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.7 KB

Schulze Method

Build status with Github Action Code coverage Code quality

This repository provides a Python implementation of the Schulze method.

Requirements

  • Install the latest version of Python 3.X (at least version 3.10).

  • Install the required packages:

pip install -r requirements.txt

Usage

To rank candidates, import and call:

from schulze import compute_ranks

schulze_ranking = compute_ranks(candidate_names, weighted_ranking_orders)
from schulze import compute_schulze_ranking

schulze_ranking = compute_schulze_ranking(candidate_names, ballots)