This is a library which simplifies the task of creating Proton compliant scoring scripts.
The following is a complete and minimal Proton compliant scorer, and shows the expected usage of the library.
#!/usr/bin/env python
import libproton
def scorer(teams_data):
# Whatever you need to do to work out the team's scores
scores = {}
for tla in teams_data.keys():
scores[tla] = 4
return scores
libproton.main(scorer)
Run nosetests
from the root.