Skip to main content

Python bindings for Elo-MRR

Project description

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 q-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

q_elo_mmr_py-1.0.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distributions

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

q_elo_mmr_py-1.0.2-cp313-cp313-manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

q_elo_mmr_py-1.0.2-cp313-cp313-manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

q_elo_mmr_py-1.0.2-cp313-cp313-macosx_11_0_arm64.whl (454.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

q_elo_mmr_py-1.0.2-cp313-cp313-macosx_10_13_x86_64.whl (475.0 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

q_elo_mmr_py-1.0.2-cp312-cp312-win_amd64.whl (336.7 kB view details)

Uploaded CPython 3.12Windows x86-64

q_elo_mmr_py-1.0.2-cp312-cp312-win32.whl (316.5 kB view details)

Uploaded CPython 3.12Windows x86

q_elo_mmr_py-1.0.2-cp312-cp312-manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

q_elo_mmr_py-1.0.2-cp312-cp312-manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

q_elo_mmr_py-1.0.2-cp312-cp312-macosx_11_0_arm64.whl (454.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

q_elo_mmr_py-1.0.2-cp312-cp312-macosx_10_13_x86_64.whl (475.0 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

q_elo_mmr_py-1.0.2-cp311-cp311-win_amd64.whl (336.4 kB view details)

Uploaded CPython 3.11Windows x86-64

q_elo_mmr_py-1.0.2-cp311-cp311-win32.whl (316.5 kB view details)

Uploaded CPython 3.11Windows x86

q_elo_mmr_py-1.0.2-cp311-cp311-manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

q_elo_mmr_py-1.0.2-cp311-cp311-manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

q_elo_mmr_py-1.0.2-cp311-cp311-macosx_11_0_arm64.whl (454.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

q_elo_mmr_py-1.0.2-cp311-cp311-macosx_10_12_x86_64.whl (475.0 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

q_elo_mmr_py-1.0.2-cp310-cp310-win_amd64.whl (336.4 kB view details)

Uploaded CPython 3.10Windows x86-64

q_elo_mmr_py-1.0.2-cp310-cp310-win32.whl (316.4 kB view details)

Uploaded CPython 3.10Windows x86

q_elo_mmr_py-1.0.2-cp310-cp310-manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

q_elo_mmr_py-1.0.2-cp310-cp310-manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

q_elo_mmr_py-1.0.2-cp310-cp310-macosx_11_0_arm64.whl (454.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

q_elo_mmr_py-1.0.2-cp310-cp310-macosx_10_12_x86_64.whl (475.0 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

Details for the file q_elo_mmr_py-1.0.2.tar.gz.

File metadata

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

File hashes

Hashes for q_elo_mmr_py-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f917359d5cbbb922da6e00e6d3b266fed81a7ad3234a5891c139922a13e6f79f
MD5 f330824b2dc75d5408ec4a7ec34e62d6
BLAKE2b-256 1c4839664892951f347efa86582608284a3b1a88db33dc4b8d0478b57b671a4e

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9f718f48efd48b5b7d52c6177d213fb08e01cc04810232c3c488b078922482f2
MD5 9b8c9aaa47227bec521dfdf854277e7f
BLAKE2b-256 6921adc199bf47e9ed271f252e418261fc19c2a7ee93161d5b34389aa860fe9a

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 eb6acf74f8bacfa199566d3d5f8ffbeb8ecb540bde9dde3edcc493a8a777adba
MD5 21682c66f837dd1a9a501413d1b63407
BLAKE2b-256 676098eec4e63462524bc77730d67a3a35a959bf55be82ff73db0d64a06b0f61

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba98499b741ebbdcaa76507d6c5dae2f8d988bcdd1424a5ace26d0f7c09378d5
MD5 1a05e70161f9fa6538b8530dd90333b3
BLAKE2b-256 9e6717346c5ca64a3c0120c63504e8c2f075dfc5ddf669101d45171eb2351427

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7e55e7c6df4e2e2eb41c7c1516100f5096fadaeab9d1bd22f39e29698aa61e3c
MD5 8b7a94d08435317e117f9f9853aa292e
BLAKE2b-256 00fd1c1f8f1d4b0163819386f846d007b009a4c3c690244b98621040a0d973cc

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8dee193b1902c30cbc019a672615f16c7954e9b6a3db1f01acc5242b02855825
MD5 23f610add8b5b3170b8b1b3c8ab68ef4
BLAKE2b-256 d24a74db3e4c53d0e9e6ed8707a874996a2d116d1db4d17c4c766357e14f3493

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp312-cp312-win32.whl.

File metadata

  • Download URL: q_elo_mmr_py-1.0.2-cp312-cp312-win32.whl
  • Upload date:
  • Size: 316.5 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 998e6b12944daebfa05783afce3b6fdb8517d009b86efe9833f8cf2e65c883d8
MD5 91920aa9ae798fdbc09666771b3c1001
BLAKE2b-256 a8f1d2125edab450ffba803ebc443d738977845c7c2690248ca7d3757c72c14e

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f1a246a4d5a86d72556b58bf75ba8f355086bde539711f5dff87cf2a9e137193
MD5 41dc1ed474c4f86c7c5fdcb0396d9caf
BLAKE2b-256 d9bc57f03ebd64340742885439f3611b8678c5027a611ceb7cfb22938c09a395

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 74246fdf587676a20c473c779159ae56b584a399c6a0ad8a6190f242279641ff
MD5 f6cca1f68af976ce44f612520c9c7a90
BLAKE2b-256 39c9b1d53ee657723a67ad60851c2fe09846e5b4e40d3059996849fced43073f

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f421ddbbe00a13b1c4a70d460bf83f6f676677aadfe6c135d9858b42db42ac90
MD5 4a83346d6075c620147c8cb345507bcf
BLAKE2b-256 070a3dc023cf288c855c68ee714ff59afaf8b6e56e277cb59a4a5f7aa4683062

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 704efa0f6bb6b6d32e3d8c978fc4d3ab581f23cfb236c1b491189fbee6f015a7
MD5 231b341a864e82150ab4a37aae520607
BLAKE2b-256 a8fa227bfd6857cae1cbbf48319eb1d794f8e1615bf9b11120af515ea4ddabad

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7e61380ca92be35cc9904433bf71e62515a9499bc0d49d475ca01b2a031cdec2
MD5 63f9c33b50191300e83072d1a730c435
BLAKE2b-256 bdfc1230a36315156854788a22ed413728ebfd701ba1b2b06fac9409d0733c2e

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp311-cp311-win32.whl.

File metadata

  • Download URL: q_elo_mmr_py-1.0.2-cp311-cp311-win32.whl
  • Upload date:
  • Size: 316.5 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 17c3ce52920f7ecc0b9f172701cb4162247abdd198d0e362b22caa43a3afdde3
MD5 753c5acc74c9936a9f6ea294f025bb21
BLAKE2b-256 372899b95eaae15a1ad0d5c1217c0b5883187cdc94089c4100f4a6bf8d8739e5

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0b4d6db3b3338fbb174edc070e8b13c3dd4caba2d15e51586a4a1ca21738b042
MD5 d4bd4792cbcbc46c4b30be7a593747ee
BLAKE2b-256 8f1aea892ba0583825114abfd3156294d0853e2c776b7d9bcc0bc7cfceba400a

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3c39bb9d542a13878f7802da4723ab9c978e9e02be23d3e5c16705d3e9953855
MD5 c67e0d389151060d5e8fb5d657b0ab9f
BLAKE2b-256 56d5c05258707507624b54022bd552f686f81c396399d09a09ef2e45c565989b

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0cf9d3c54778b503b29d0c7c1761364d10e6a0af278ac69692cb50d92412acef
MD5 5471400224f7fe84777053f6cda02d72
BLAKE2b-256 b457ee8dd5eedf9d142603588926f9cf44c858fe50c7669e66be315f1a741472

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 031f13a463d16301f034424fe6f16ebac9a6b6ab085df3b3a5be4a826622f593
MD5 b6a65c9f4b256f90460c4cbf1b2986c5
BLAKE2b-256 4bca00d8f4c322dc4ce4287f9bb99b3d2963d5f8f8a75aa01f34834e9f85a085

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4cb00197788084b41accf35fb7064557f9ba7cda7807a73e8570645e57d8862c
MD5 42b0137fca691f223d0f17d0393d9829
BLAKE2b-256 489ed2b52b15fca2c4cd9eebe60b012234446df3475137619ff240771dfc3eb1

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp310-cp310-win32.whl.

File metadata

  • Download URL: q_elo_mmr_py-1.0.2-cp310-cp310-win32.whl
  • Upload date:
  • Size: 316.4 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5e687f137068c1d434aec3900909230243c85a9e0f0ad51550be33bcf74ab0a8
MD5 21bf9a9416ba8e550c3e8692229e6fc5
BLAKE2b-256 5e196a7302aa3de8ca361c4a830ef5b72fe7c7c985dc67996a874a2b90e7bedd

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a1a02196f78299b15b578b42b2201d3491c26a7ae9c52e25baa68adc873b22c3
MD5 6509dc25694111ab0357b6fc1315bc56
BLAKE2b-256 504e335697d93364a425240962767cfceef269925a3a4f46160c8f88334bf1d5

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9f6d66ad1f34cd00eea835e1ff5d57c1d581347b30eb0b77714eb2bf1be616e9
MD5 a0488aff0d0aaafc56f5f8318c019f9b
BLAKE2b-256 fe8ff3447630c13de76df076c0cf2b2b2b125d88d93fed62083adbc377170efa

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a3a0a5060e813d75ea470577130d27e3a82411d7749b4fac7b8fef5a9d79e17c
MD5 ba50e5bd691035a322eb5ba15f72f7d2
BLAKE2b-256 122cbe2f454de7ad29d926b49e06cffa561904ceaaec38ffc2a8f56a2e5fa0f9

See more details on using hashes here.

File details

Details for the file q_elo_mmr_py-1.0.2-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.2-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 621236257f757d93293c2164cdd06cd03bc8c0de6a93cf3375ce30b4005d1c97
MD5 fae26b4728f15a1f196cf3a615141e43
BLAKE2b-256 3fb13ada28b88866c0218b6c439108f68b8af449e53f2c4d96099c94ad6283e2

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