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.3.tar.gz (6.7 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.3-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.3-cp313-cp313-manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

test_elo_mmr_py-1.0.3-cp313-cp313-macosx_11_0_arm64.whl (454.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

test_elo_mmr_py-1.0.3-cp313-cp313-macosx_10_13_x86_64.whl (475.0 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

test_elo_mmr_py-1.0.3-cp312-cp312-win_amd64.whl (336.7 kB view details)

Uploaded CPython 3.12Windows x86-64

test_elo_mmr_py-1.0.3-cp312-cp312-win32.whl (316.5 kB view details)

Uploaded CPython 3.12Windows x86

test_elo_mmr_py-1.0.3-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.3-cp312-cp312-manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

test_elo_mmr_py-1.0.3-cp312-cp312-macosx_11_0_arm64.whl (454.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

test_elo_mmr_py-1.0.3-cp312-cp312-macosx_10_13_x86_64.whl (475.0 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

test_elo_mmr_py-1.0.3-cp311-cp311-win_amd64.whl (336.5 kB view details)

Uploaded CPython 3.11Windows x86-64

test_elo_mmr_py-1.0.3-cp311-cp311-win32.whl (316.5 kB view details)

Uploaded CPython 3.11Windows x86

test_elo_mmr_py-1.0.3-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.3-cp311-cp311-manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

test_elo_mmr_py-1.0.3-cp311-cp311-macosx_11_0_arm64.whl (454.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

test_elo_mmr_py-1.0.3-cp311-cp311-macosx_10_12_x86_64.whl (475.1 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

test_elo_mmr_py-1.0.3-cp310-cp310-win_amd64.whl (336.5 kB view details)

Uploaded CPython 3.10Windows x86-64

test_elo_mmr_py-1.0.3-cp310-cp310-win32.whl (316.5 kB view details)

Uploaded CPython 3.10Windows x86

test_elo_mmr_py-1.0.3-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.3-cp310-cp310-manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

test_elo_mmr_py-1.0.3-cp310-cp310-macosx_11_0_arm64.whl (454.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

test_elo_mmr_py-1.0.3-cp310-cp310-macosx_10_12_x86_64.whl (475.1 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: test_elo_mmr_py-1.0.3.tar.gz
  • Upload date:
  • Size: 6.7 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.3.tar.gz
Algorithm Hash digest
SHA256 4473683e39e34b04f09c74d3fb73948cc39417d72c45fd56d9e55ae5b49f6ab7
MD5 7a7463663ff82c1d05c1a24dc7c3eda0
BLAKE2b-256 dbf5a62906533aae18c502591cc830e0acb5a7bfffd1d5838a42c07c5514ad35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 20455bec4964b528e82e397c1781cbce498bddab15713e2ddc4ad02d228badcb
MD5 fe71b776581f5c88607d0b07a3e333c4
BLAKE2b-256 e9da30154b69b806698e3a21e53fa6d29091c74c626f010ecccdfbdc4c835ff4

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 68042bf288303ce0051e763fbeb0afdfa78143d3a31f0f2e6e14d29309165c9f
MD5 3145ff9ae5c12597165230a4770d414d
BLAKE2b-256 6dd34dab83a0057b6c353fea237df44e421041f52da89f4517394ef3ab166a7b

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f046aad36a6aeda136ce47172b435a49a08a072a845c37179d56950fbe7c9ef
MD5 c06704d2b1ff430e6730566e9463e022
BLAKE2b-256 dc618af8f1cb79efce194b3aa9393287c3b6f048afeaf6019d80b4a38f71163d

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ce911ed8bf44c72d7375523aa33c6d26d939507b1fec602631e6e028a02fb2ec
MD5 c176765ba245308ce74025a5a072d54e
BLAKE2b-256 5d9eb151e08244f844739494092caf92e03d3deeffce9a47fa99827094ccb230

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3cbbba8767f9b3fb79d8b147705ac429855184085db153c2029efdfc60db356a
MD5 92880245b9b316137f9c519550aa0e1d
BLAKE2b-256 eceed2186adf20807de81a1921871548ff0be342755f3aa2b1efb60faf54b3ea

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2ccfece2df3d3198f1fdc1aa65123624dae614c242ddc0203f571ff93bd7c810
MD5 32ca41b686b4ee1f07794dbec16d1c16
BLAKE2b-256 ea09a3fe5f0f2d9818feaec0a63e19a5b71abaca9c98beda9b6ae6f9529ef83a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 42d52f8c649e9fb12abb27bd24b96de30840db309bbdd88a6db6c64fe54d72d9
MD5 a4be86efa6bdbf76dbe7003fa8eba753
BLAKE2b-256 65765e740ec9cc94cd2e62a50e3e6399e3c21c7707f96a884377a834ae249a2c

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 69bda9947c53c61eef539741afba2b804355a2efd389a4031569e0f63e7f072e
MD5 882d74d448980e159e096c2684138cf3
BLAKE2b-256 db8b3e36e0e13806e2f34bc315ec477a32c8436f746a15ecbe50b360abdfbc90

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94bf7774a37f654aa65f0994deea7a3e5e9df4c76da450fd1cfbde25b430f317
MD5 24fa4a3f61f2ebee57531f1ad800863f
BLAKE2b-256 e989ea3ad6725f987ad9899165881d4c47cf3322387783d8336e3cf42ffc78c9

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 fc41ec1d26ae6495919308d8a308c191227a3640527faf456bb653f27c0cdc9f
MD5 55cfb9173d5325e9fb7321503e5e7dc9
BLAKE2b-256 f5c34211959a676840f8a66b432b1123279496b653c52ec8d7fce0598b976389

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3606d760213c3c622ed1b07bf01c81f1b295888736120133ee897796cd22cd77
MD5 e4b76bee75e2713d9b0a8ae8a9ada4ec
BLAKE2b-256 d73e7e56ec7d0db8e3e173b36ce2326320ecccd738fb9b11c91f8d06813117cc

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a9655b030fc180098ba41911182998b24e17b846b2cea4694a525a4aa7abc3d3
MD5 08c5077d72d9f524e87a182b1499fd3b
BLAKE2b-256 735b1b5d9c03d744d93217eb981c0a3f39bedee23b7edc9121951d85036f5243

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 17f1a6df93f29858abc8fb7038723411ecc5ae3497a6fcf72c29397c9ed4fd47
MD5 22772440bd998bae937b4890a1e61e97
BLAKE2b-256 b7429b543e59921861e74b0e698d107a151414f74f710f2fc1a4f16eb3af3f34

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 faca8ee91d89629a97851945eb647453e612130783799d7ee5cd4d5e058fed88
MD5 2dd4b0db3bbb438d56ccabc3203ed387
BLAKE2b-256 873ee36864581d0483f75b60211840c1ec2d29a8bf1df2c9cbfc45da8bb63783

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfa0b0fea12561fb745570d2791e4b2ab1fa27fc18194a0ace3f4a90a686d8f2
MD5 0e75e987558148ddf819d73fa6887b33
BLAKE2b-256 0ca6c385bdbb4ca490d502f3bf1ab33d1844da3b7c6c5aae100c8f80c0a0b066

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e5d99e5d30733c256fafa99bf5326df51e260a6a09cd75dd392f1431dcbdefc6
MD5 73873ad5d1ed7f2ad9d6c98c5a02e98c
BLAKE2b-256 2fd07978074c0418482930e7e1007bef0be3861bf64d46f34eb077d922bcf361

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7ba06660be1d4cc896d6f2da0befda71cb9b231e6b33add0518196525c51208c
MD5 25f457b5d013e22e7b4df1681da22c43
BLAKE2b-256 5bce6068f8d64031fab3e22e5d46d4d243e7092846af548957d74056d21681ff

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ed6006560e277763d50be110b1cd381abe5814e95f856b3f58085b053924aed5
MD5 7cdbd3b64596df2e41adecc46931324d
BLAKE2b-256 85fc8fab9e69ffdeeaa4ca4512b9d4d99fff25ca39ab330d433ba5ef2d42c42e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ea72b789604d65b509b62d893debc5789236f1fe2f2d395d389d18e1b7b0ffc6
MD5 31d2608aa44ce73b0773eab2911ea152
BLAKE2b-256 674a99944c8be1641a89554882679aaed3730d5fe4f9b43972458f78fa67f9c4

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 630eb4ce35e8d0bf4b5eaab1a410604d8c63e7778353147d8136cec4640f135f
MD5 47ac332edbc72dd7552350b9accc6039
BLAKE2b-256 5530670f4ea42208c5805950f73fbbad3b1e3ddc533004f5d0450f4a786951c8

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e41f58c73ef1264a00190c5ea676de2401845229e73a9361df4dbf1e87ad93e4
MD5 6657aefc470f733e92cca3db35f4816c
BLAKE2b-256 a590796c4701443b063f73ef10302a5a082c5195f569b4e25de0045ce86d02e4

See more details on using hashes here.

File details

Details for the file test_elo_mmr_py-1.0.3-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.3-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fe56e6a8cf0ef15a923c6a1f2d88e5c77f56fda4daa842931ce20e6557026c35
MD5 aa7749bcc7bf58fcf79e93b7dc11aec8
BLAKE2b-256 3a0e411819ec9f85cfeb364054db6d7be08862af3ff93ffde83044c590d52664

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