pair

a ladder pairing/matching library


Keywords
ladder, pairing, matching, Munkres
License
MIT
Install
pip install pair==0.2.3

Documentation

pair

PyPI Version Build Status Code Climate Test Coverage Issue Count Codacy Badge

A utility library for ladders and tournaments.

pair has simple tools for grouping players into teams, grouping teams into matchings, and assigning templates to team matchings

Installation

Latest release at https://github.com/knyte/pair/tarball/0.2.3

Install via pip (recommended):

pip install pair

Usage

1. Install dependencies

Don't worry about this if you installed using pip

pip install -r requirements.txt

OR

python setup.py install # installs the whole module

(from the pair parent directory)

2. Use

That's it! You can now use all the utility functions!

from pair import *

# to get some quick documentation, type:
help(pair_teams)
help(pair_players)
help(group_teams)
help(group_players)
help(assign_templates)

# generally, you supply your information as dictionaries
# and sometimes a scoring/profit function, and you
# receive your outputs as sets of tuples