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

Uploaded CPython 3.13macOS 11.0+ ARM64

test_elo_mmr_py-1.0.2-cp313-cp313-macosx_10_13_x86_64.whl (471.0 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

test_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

test_elo_mmr_py-1.0.2-cp312-cp312-macosx_11_0_arm64.whl (455.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

test_elo_mmr_py-1.0.2-cp312-cp312-macosx_10_13_x86_64.whl (471.0 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

test_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

test_elo_mmr_py-1.0.2-cp311-cp311-macosx_11_0_arm64.whl (455.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

test_elo_mmr_py-1.0.2-cp311-cp311-macosx_10_12_x86_64.whl (471.0 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

test_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

test_elo_mmr_py-1.0.2-cp310-cp310-macosx_11_0_arm64.whl (455.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

test_elo_mmr_py-1.0.2-cp310-cp310-macosx_10_12_x86_64.whl (471.0 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

test_elo_mmr_py-1.0.2-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.2.tar.gz.

File metadata

  • Download URL: test_elo_mmr_py-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4206be16a78fcc44045dde824b24d418d32ccdd7c934284ed1f12a1b5ab49521
MD5 4c955063413bc7d98f32f145316ab362
BLAKE2b-256 73280a9b165357d4f72a896eb4f911a48f3a80547ed5d6f4247f2d19ff887ca4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 68dc8903ee874b829453ccaac541dfe97feb148e5955eca4ca9473f348304a17
MD5 c2aabd0d08ca308b579690f62ff7e03e
BLAKE2b-256 55bb16cbec10cdd4719d1923e1a288c603bbbbb639ad1e5e2f12d82697d6daff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 187f070b4f5664a7c2948fdd48a604efc9e2098ec4dcabce6b0565a49e7e2c6d
MD5 19c0525fc95976003c7b4459d809f35b
BLAKE2b-256 6769ef7819f28d3ce03840691e79567c3515babd8595a81bc641220303aaabd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 41724d2c8177d21747195e7ef206ce5e6f44f560ba36c6d94f8153230ec77615
MD5 a48ce3c228794614ae28d92b76a61591
BLAKE2b-256 93ff7bd244100d84befee80a338e7c15dcccc8ae0a84ac7ccdecfa736756eba9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1d19ba60ef582f63e2424b8ee5651e21eadce96ad2e047dcc3016bbe7b13eccf
MD5 c327e624d737f4f6601df6f4ae864299
BLAKE2b-256 3ad68eea715d88ed42ba3766205301f1a7d5167223faa3247ede2a688afdcdab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55f53228d70a6289f0d60e88f2cf6a05444807e320abd0645fecb792ee47ff70
MD5 9bc7ed68f7aae7241244ae210f9c498d
BLAKE2b-256 8dcb6ef607df960ce39a3201a6763b94974c3ffe96c1e1f8a70ac6343ff02f1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 de8ab07f4988595fc2da65deb070dfe9f3c034a16d89ac4fbbc1495c236e0056
MD5 4b3a16562ea177bc3756876e53b6994e
BLAKE2b-256 48118be67d6d7a3c19bc6a7be4d02120edc3fbc9b3724f211d52c36e4cf9648c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dce421a50eb4afde23f4d445f1f8c8c4a971b4e9aa4a73515e13e3ca1daffddd
MD5 05fb3e59b3b4fac318df83f33968ecba
BLAKE2b-256 cf20a24603a231f21e3ab3291f0fcc18a4b9709133a62e7f89ad349149c46818

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ae8558833f606b79283017d5e1024cf2c9b3fd64e1609d784a4d62c1c255b93
MD5 166d1095be95810333d5574802822562
BLAKE2b-256 5e121533d328e40e42c4d65fd01daa707a4324a5b7a0ae8243edf3e3ba470fe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e6c8c665842a4716fae77a919e56a57f751391572709dd10d94865e35895247c
MD5 a5d6446227b98235cc671d145ea1260a
BLAKE2b-256 fdf967976f70a4149cf8e06bcc652d263a4001b8c17cae687fab33bd0bd25bdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7e68a5e6ebf7767126b8cb1da8fe9b7d36256859b15fdb5a8ecf0dd8eba904bd
MD5 218d6d0171c70728ec92f7efc9c8e433
BLAKE2b-256 09e090431443d334e7d2b527c7b97814aa3b866925859cb49aeff175b4755589

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 946516ff196c03840b7f375ea972d2ca5fcbe9d8763e7f309d714eb5b0f84986
MD5 43433b913a11b14906edd45e36e2a5ce
BLAKE2b-256 8e2f1e5e025561d63f6cb45c149e0dd8bc0f8ec32530070dcddb230fca6f372f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3415994b06a22b972e88764f54536a58a2958dafab1ef68975e0a5e129b89224
MD5 b83baa50f621a24949f7824588828889
BLAKE2b-256 ed51ffd88c94628e3b34bc79d77c4c6a6c9e3ff3b7208fece54a6580ac4458ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_elo_mmr_py-1.0.2-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9f041ea4ff8b49f18f0e51ee5d7a65f7a383bc5cd3737030f5f4d11fe8c3bff3
MD5 70a803b521640822b7f894869804b1a2
BLAKE2b-256 a9074dfdd26938e44d2c7c02521283eb50bfe390dd5352ed8aff5def850fcfc2

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