Skip to main content

Python bindings for Elo-MRR

Project description

Elo-MMR-Py

Python bindings for Elo-MRR.

Installation

You can install using pip. This is the easiest way to install the package and its dependencies.

Install from PyPI

To install the latest released version from PyPI, run the following command:

pip install test-elo-mmr-py

This will download and install the latest version of Elo-MMR-Py from PyPI.

Usage

After installation, you can import and use Elo-MMR-Py in your Python projects:

from elo_mmr_py import Contest, rate

contests = [
    Contest(standings=[('player_1', 0, 0), ('player_2', 1, 1), ('player_3', 2, 2)]),
    Contest(standings=[('player_1', 0, 1), ('player_2', 0, 1), ('player_3', 2, 2)]),
    Contest(standings=[('player_1', 0, 0), ('player_2', 1, 2), ('player_3', 1, 2)]),
    Contest(standings=[('player_4', 0, 0), ('player_1', 1, 1), ('player_2', 2, 2), ('player_3', 3, 3)]),
    Contest(standings=[('player_4', 0, 0), ('player_1', 1, 1), ('player_2', 2, 2), ('player_3', 3, 3)]),
]
rate(contests)

Output for example above:

{'player_1': Player(name='player_1',
                    rating=1675,
                    events=[PyPlayerEvent(contest_index=0, rating_mu=1705, rating_sig=171, perf_score=1744, place=0),
                            PyPlayerEvent(contest_index=1, rating_mu=1663, rating_sig=130, perf_score=1618, place=0),
                            PyPlayerEvent(contest_index=2, rating_mu=1686, rating_sig=111, perf_score=1728, place=0),
                            PyPlayerEvent(contest_index=3, rating_mu=1678, rating_sig=100, perf_score=1660, place=1),
                            PyPlayerEvent(contest_index=4, rating_mu=1675, rating_sig=94, perf_score=1666, place=1)]),
 'player_2': Player(name='player_2',
                    rating=1483,
                    events=[PyPlayerEvent(contest_index=0, rating_mu=1500, rating_sig=171, perf_score=1500, place=1),
                            PyPlayerEvent(contest_index=1, rating_mu=1555, rating_sig=130, perf_score=1618, place=0),
                            PyPlayerEvent(contest_index=2, rating_mu=1500, rating_sig=111, perf_score=1393, place=1),
                            PyPlayerEvent(contest_index=3, rating_mu=1487, rating_sig=100, perf_score=1459, place=2),
                            PyPlayerEvent(contest_index=4, rating_mu=1483, rating_sig=94, perf_score=1471, place=2)]),
 'player_3': Player(name='player_3',
                    rating=1279,
                    events=[PyPlayerEvent(contest_index=0, rating_mu=1295, rating_sig=171, perf_score=1256, place=2),
                            PyPlayerEvent(contest_index=1, rating_mu=1270, rating_sig=130, perf_score=1242, place=2),
                            PyPlayerEvent(contest_index=2, rating_mu=1312, rating_sig=111, perf_score=1393, place=1),
                            PyPlayerEvent(contest_index=3, rating_mu=1291, rating_sig=100, perf_score=1240, place=3),
                            PyPlayerEvent(contest_index=4, rating_mu=1279, rating_sig=94, perf_score=1247, place=3)]),
 'player_4': Player(name='player_4',
                    rating=1809,
                    events=[PyPlayerEvent(contest_index=3, rating_mu=1767, rating_sig=171, perf_score=1819, place=0),
                            PyPlayerEvent(contest_index=4, rating_mu=1809, rating_sig=130, perf_score=1855, place=0)])}

Contributing

Welcome contributions! If you would like to contribute to the project, please fork the repository and submit a pull request.

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

test_elo_mmr_py-1.0.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

test_elo_mmr_py-1.0.1-cp313-cp313-manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

test_elo_mmr_py-1.0.1-cp312-cp312-manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

test_elo_mmr_py-1.0.1-cp311-cp311-manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

test_elo_mmr_py-1.0.1-cp310-cp310-manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

test_elo_mmr_py-1.0.1-cp39-cp39-manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

File details

Details for the file test_elo_mmr_py-1.0.1.tar.gz.

File metadata

  • Download URL: test_elo_mmr_py-1.0.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for test_elo_mmr_py-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cf127564db6bd12b4e0032958a17d3f85a145be0fd17fe6cf1d85dd7408f8784
MD5 cd15dbfc86496cd1536576ba9de0d952
BLAKE2b-256 5871541e2bfff27b26899f0cd50a63a8e7c645a004c3cd29e5fd198d12a685e8

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7d78ab192f8b73b1e3a89c9b628facca6d4405d1d735d9fc61e68a50f3c603f5
MD5 945b9b5b253c221ff7f704c1d1c5d837
BLAKE2b-256 ff5d8b6fe61fc8ba47c2aea7f172a3f7fda47f06fc639caaca1c40dad4df59d7

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4b13b504fea40327484b323e23d49e93eafa8ba04581f9ee074bad9c8bc2bf73
MD5 28698ade13457034abb7af6cd980fc54
BLAKE2b-256 24ef4c01a6c365923ea2fc0fdf0b651866d1242c1683782c9a9a1fad5f55cb09

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ab7f52646982825d8ba3c0d71dd0ebeef14c35d7753b4dd733547585cb9bc4bd
MD5 7670e49f2b2c7e303973a81564ab14b1
BLAKE2b-256 2dae6242bf11ed70fb013e64af648a8951f799e6dc84af1c26808360a1a9f352

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.1-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e918998d9721ecb3030e67656422c9e51c96d74c4583fc8b9603b6da0154e8e6
MD5 9196d9a09b746182afefedd89e8e0950
BLAKE2b-256 7d11e1c73bc57dbd510d364c0f2631315869f2cac2fbaaf42929e3cffabdd247

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.1-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.1-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1987e63b4e8600ca80d966e604bf870d9bca2a507900c3d218968b9a9220b8d0
MD5 49aedd2dc4357a5e66e2f7182fda60d7
BLAKE2b-256 d61302505dd49a9e4cfce43c6b0af1ad45d5cb9e71f9be2081cd6d0e7ebb1899

See more details on using hashes here.

Supported by

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