Skip to main content

Python SDK for the MCSR Ranked API

Project description

mcsrranked

PyPI version Python 3.11+ License: MIT

mcsrranked is a Python SDK for the MCSR Ranked API.

Installation

# Using uv
uv add mcsrranked

# Using pip
pip install mcsrranked

Examples

import mcsrranked

# Get a player's profile
user = mcsrranked.users.get("Feinberg")
print(f"{user.nickname}: {user.elo_rate} elo")

# Get the leaderboard
leaderboard = mcsrranked.leaderboards.elo()
for player in leaderboard.users[:5]:
    print(f"#{player.elo_rank} {player.nickname}")

See more examples.

Documentation

For full documentation, visit camodotgg.github.io/mcsrranked-python.

Contributing

git clone https://github.com/camodotgg/mcsrranked-python
cd mcsrranked-python
uv sync --all-extras
uv run pre-commit install

Run checks:

uv run ruff check src/
uv run mypy src/
uv run pytest

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

mcsrranked-0.1.1.tar.gz (56.8 kB view details)

Uploaded Source

Built Distribution

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

mcsrranked-0.1.1-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file mcsrranked-0.1.1.tar.gz.

File metadata

  • Download URL: mcsrranked-0.1.1.tar.gz
  • Upload date:
  • Size: 56.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcsrranked-0.1.1.tar.gz
Algorithm Hash digest
SHA256 44680950a0d8039c0ab7611d2b8fcbd7acf54d6bc6d2bd8505d1f4e02c29a63d
MD5 a23562c3907275ba3679ed4276fbc095
BLAKE2b-256 46f5748819e076416765d823f703b584fd14eff0786a9195c36554c6ea7f6301

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcsrranked-0.1.1.tar.gz:

Publisher: publish.yml on camodotgg/mcsrranked-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcsrranked-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mcsrranked-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcsrranked-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 893e41320ae12da8144546c80d4c2e1c5026467b9623f1f616c11d4dbe39b819
MD5 49730c8b7f58fbe1ae4cdcd953930e64
BLAKE2b-256 523bde3c4947ab57793be7ef072ec73cd7e8af0a7c048607084f90187f236ba7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcsrranked-0.1.1-py3-none-any.whl:

Publisher: publish.yml on camodotgg/mcsrranked-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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