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.2.0.tar.gz (60.4 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.2.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcsrranked-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a63c2d5056effbc4ce67930f4aca1da886b1a8b437a6ee54b8dee41fb47f2921
MD5 c899525f3e343bca6ef0317a7e77ab0b
BLAKE2b-256 935b27b882a9c3ce38620b54ab3e129cf67b693daf9a3d09948b3a9827fc61cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcsrranked-0.2.0.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: mcsrranked-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.3 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6843453ba4250dd2ca5492302def3dc4ca7fca6b855e9291a5c5538ae59e0aaa
MD5 01380751f20c3e4d7058c3a37a966915
BLAKE2b-256 10d2f64d49d5ada83f7c5738a62d7ab5fee4ace7296c7585264d92c229006a7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcsrranked-0.2.0-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