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.1.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.1-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.1-cp313-cp313-macosx_11_0_arm64.whl (455.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

q_elo_mmr_py-1.0.1-cp313-cp313-macosx_10_13_x86_64.whl (470.9 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

q_elo_mmr_py-1.0.1-cp312-cp312-win_amd64.whl (339.3 kB view details)

Uploaded CPython 3.12Windows x86-64

q_elo_mmr_py-1.0.1-cp312-cp312-win32.whl (315.7 kB view details)

Uploaded CPython 3.12Windows x86

q_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

q_elo_mmr_py-1.0.1-cp312-cp312-macosx_11_0_arm64.whl (455.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

q_elo_mmr_py-1.0.1-cp312-cp312-macosx_10_13_x86_64.whl (470.9 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

q_elo_mmr_py-1.0.1-cp311-cp311-win_amd64.whl (339.1 kB view details)

Uploaded CPython 3.11Windows x86-64

q_elo_mmr_py-1.0.1-cp311-cp311-win32.whl (315.5 kB view details)

Uploaded CPython 3.11Windows x86

q_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

q_elo_mmr_py-1.0.1-cp311-cp311-macosx_11_0_arm64.whl (455.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

q_elo_mmr_py-1.0.1-cp311-cp311-macosx_10_12_x86_64.whl (471.0 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

q_elo_mmr_py-1.0.1-cp310-cp310-win_amd64.whl (339.1 kB view details)

Uploaded CPython 3.10Windows x86-64

q_elo_mmr_py-1.0.1-cp310-cp310-win32.whl (315.5 kB view details)

Uploaded CPython 3.10Windows x86

q_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

q_elo_mmr_py-1.0.1-cp310-cp310-macosx_11_0_arm64.whl (455.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

q_elo_mmr_py-1.0.1-cp310-cp310-macosx_10_12_x86_64.whl (471.0 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: q_elo_mmr_py-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f217aef5587761488cc066d51f4104e6b48808db48fcd7345abe21ce008c84d0
MD5 858a5ba8c16f5e95a3d01e6bf001f65a
BLAKE2b-256 2c69c5a232806c3600680113e7a3263534c566fc0d9310b398559cf863b26f8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a4c1b79ad001e86dab31021aeede8c3e186efb00267dd6a28a5c254f3df46b34
MD5 13711cf3da95d9e5e5288f86bf606928
BLAKE2b-256 3cb12fc4b9b2e43c9adb51c8ad47a0ed879deba100245be281a73aca75d4607c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34024384d70540342ae66062e601c84ccb4688fd04402beff1eb9e8611db3eb0
MD5 eae5a1c70862b7a74830587543b23518
BLAKE2b-256 74f75b9ab6035b3fb2c95fb1f2450756ad65606c65eb38e2a3187150a53f130b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 511ec451c592a58427d486baa60d828676ade91808e0355cf6666db623404414
MD5 8415f8c03a7222e58b19d4975bc4dddd
BLAKE2b-256 ed5337c8dbd2995d3d122ad185c0a34a73803fa3471171cb794e42bb2d415876

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c88acedce97d24e4bf61c1df04a683a806aa0ab5a1449c80be9d1d780cad5fa3
MD5 9203e30b61fa83fa2b9241d7cdbb6199
BLAKE2b-256 565cb3ff4f44f959b84a4173fb890f4fb60f71d050c2ab634f86e0e257debdbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q_elo_mmr_py-1.0.1-cp312-cp312-win32.whl
  • Upload date:
  • Size: 315.7 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.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4b70843c07b7cff5359fb2900346e2ce5d6ec2177fde5b5d8abfa68be8adc0ba
MD5 783c155f20e3a9e1995486fa573e92a9
BLAKE2b-256 3040534af15252725ecae42c494b3c3e0601e9753e8e6583af3c62278d6390f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 63758991445424c68291225df6c80c1a9a9cce5ab1b549b40ed0014452699e09
MD5 1f10981fced0da65d7cdf856d381ad02
BLAKE2b-256 c59ffca15582302e3b367b4c5a00dce97b6e8f55bf4388759ee7affe28798f3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 642c07ba487bf2b3eec8f9f5dc90ef07b934adec36d27690d6d309ac4a9a264c
MD5 e3b0d83e6140f3010ce0dc90b656379a
BLAKE2b-256 19e4fef8ff0cee2c96f00eeb1b1ab34470aaaba8ba9846076f0519f5655ba767

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 eedd4433b9662114cd9a6a181e9184cb3304f32cdab5e07dbf5c0be1edf38ccd
MD5 9d294a807c34709e8c20f50435413486
BLAKE2b-256 13065cef695183f04e9a9d0c6ad52d02925c8d694b1b13e33dde98e024a186e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 047affba889cdd3faff2fcc19d50b2d7f29080a6d901ca6aef6fa7aa4bca1fae
MD5 304ff70ea55bdf9e82e2bd05409277c0
BLAKE2b-256 22676aed25470c5d520d08694d5fc8b94c44c679d6d526bda2e515a246c08a57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q_elo_mmr_py-1.0.1-cp311-cp311-win32.whl
  • Upload date:
  • Size: 315.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.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 db62d92c0579fbb771cc813dc70871f9c3249d26f02673270cf846e6a384bc45
MD5 457147207659e2c0626d660dde2a92e4
BLAKE2b-256 2023f4d569b2f8d3e345b36c561b49cbd9af98e164013b456c1e8d6eff46da42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 82455e31e74eef577876825ad36bdc19a32c7dbbe06b56f3661b285ef7f05b72
MD5 7498a848f829dbe02215be46b75fa153
BLAKE2b-256 a7bca5ede050a0a697019c08d3dd55b330aa5bc067520c9235698bfd7c492f1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3a887dc2ca41e2b7f09427eb861d785ed7994dff2d7834486cbc3689da0443d
MD5 ba19eaee602e2dbb86ea5ca2f24e4d00
BLAKE2b-256 4181dd5648190fda5a460ef5c527d6c5e1a10009e96e39441acd48b21240e192

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 78dab31c999590009968058fd4051bf37f7751d5e9d3fdcf60202e3f283fe922
MD5 9a4639f3bbc6604c477c0abd2aa9f9c7
BLAKE2b-256 a9d2e689ce4eaa1801a08a8a2ac11bb9127210214ef5eaa0208ebb8c4a9744f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4322426cb00ac983b5939d760ad9397bed1f9265eaea2c122ef79898ace00f17
MD5 9c0b93d2a5d753071208713e964f9563
BLAKE2b-256 0897db665743e77122b5dfb14e2cea28d10a19c569f97b471cef5e275923a4fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q_elo_mmr_py-1.0.1-cp310-cp310-win32.whl
  • Upload date:
  • Size: 315.5 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.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d1f46d3d0cefa46de0072d40d5dbd0d7d1a24367ec46b737a2ed2689ffb0a1d5
MD5 742e55676a26114249bd415e7b35c7e6
BLAKE2b-256 cd5238836f241c98a11a54cf868bcc347acd6beabefe29d2db62b6539bb0f9ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c343c1feb477c96548b2d12518d037361f564de9e5661aeec8ecf0c0f119dbdf
MD5 3f289082c9fedecae10e4abe625c4e80
BLAKE2b-256 d095b780ee7f572a20dc5574ad90cc94ede5752f0bac0cfb146e7b4aacf01dae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d331d90baa9280e273969f5f8045db304e5978a6fb5ea464e9218f2c57408641
MD5 27ce87cb49c30bcb3b4760ee88352f8a
BLAKE2b-256 50b52c7ac3384f4a4d6bc0d73114b99f280b4c9f4a79e54e4126f3acc1a63465

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for q_elo_mmr_py-1.0.1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e48b09384c47dfb95c529df44a8a98f1c0a0b91acfb42281d1701503471eb3af
MD5 ea909a9916022797e24f9a148ac15279
BLAKE2b-256 9dfaa89e508237f7a4e095d4588ebd4ca9b2b27808f76e648ea489efd2c9a6a6

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