Skip to main content

Python SDK for the MCSR Ranked API

Project description

mcsrranked

mcsrranked is a Python SDK for the MCSR Ranked API.

PyPI version Python 3.11+ License: MIT

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.0.tar.gz (25.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.1.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcsrranked-0.1.0.tar.gz
  • Upload date:
  • Size: 25.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.1.0.tar.gz
Algorithm Hash digest
SHA256 e8693396167a75b842fca76f21bd46ed61928af38be6578536bd93e80cb06191
MD5 70398b21695bb026b7b422fce29f1979
BLAKE2b-256 0c9a53129b368d6b5dfb4a04e2b1675ec1f58062962422ec32c37956c8687a75

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mcsrranked-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 baa43a49b086b7f98c3f5a22c956ec8244879692262ba3e53072d281b5f812f4
MD5 a55356a035b5061c859f5f9828a07626
BLAKE2b-256 adafdc913b947681a83031113b0a08c38c4a220f9091c5a3c280182190575f1d

See more details on using hashes here.

Provenance

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