Skip to content

camodotgg/mcsrranked-python

Repository files navigation

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

About

mcsrranked is a Python SDK for the MCSR Ranked API.

Resources

License

Stars

Watchers

Forks

Contributors

Languages