Viewing v4.0.0rc6 · release candidate · v3 stable / main · v4 preview / next

BUILT IN PUBLIC

Read it. Run it.
Make something with it.

The scorer is open source. Inspect the adapter rules, test an example, and build the interface your workflow needs.

Start at the public interface.

Install the library and start with a dataset. Add App for the CLI and OS, or Gateway for HTTP access.

The examples on this site describe source v4.0.0rc6. To reproduce it exactly, install the supplied checkout from its repository root.

Choose an install
PUBLISHED LIBRARY
pip install statline
PUBLIC PYTHON SDK
from statline import load_dataset, score

rows = load_dataset('EBA_Elevate302/eba_players_gp3_plus.csv')
results = score('eba.players', rows, mode='batch', weights='pri')

ranked = sorted(zip(rows, results),
    key=lambda pair: (-pair[1]['pri'], -pair[1]['pri_raw']))
for row, result in ranked[:3]:
    print(row['PLAYER'], result['pri'])

Source & issues

Review the implementation and open a discussion about a concrete change.

Explore

Reproducible examples

Inspect the dataset, adapter fingerprints, scoring output, and sample packages.

Explore

License & trademarks

Read the project's license and the policies for the StatLine name and marks.

Explore