Python SDK for the MCSR Ranked API
Project description
mcsrranked
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a63c2d5056effbc4ce67930f4aca1da886b1a8b437a6ee54b8dee41fb47f2921
|
|
| MD5 |
c899525f3e343bca6ef0317a7e77ab0b
|
|
| BLAKE2b-256 |
935b27b882a9c3ce38620b54ab3e129cf67b693daf9a3d09948b3a9827fc61cb
|
Provenance
The following attestation bundles were made for mcsrranked-0.2.0.tar.gz:
Publisher:
publish.yml on camodotgg/mcsrranked-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcsrranked-0.2.0.tar.gz -
Subject digest:
a63c2d5056effbc4ce67930f4aca1da886b1a8b437a6ee54b8dee41fb47f2921 - Sigstore transparency entry: 813314384
- Sigstore integration time:
-
Permalink:
camodotgg/mcsrranked-python@3a909d419f4b07ab2433cb6a002cd2e0ebd9bea3 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/camodotgg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3a909d419f4b07ab2433cb6a002cd2e0ebd9bea3 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6843453ba4250dd2ca5492302def3dc4ca7fca6b855e9291a5c5538ae59e0aaa
|
|
| MD5 |
01380751f20c3e4d7058c3a37a966915
|
|
| BLAKE2b-256 |
10d2f64d49d5ada83f7c5738a62d7ab5fee4ace7296c7585264d92c229006a7d
|
Provenance
The following attestation bundles were made for mcsrranked-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on camodotgg/mcsrranked-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcsrranked-0.2.0-py3-none-any.whl -
Subject digest:
6843453ba4250dd2ca5492302def3dc4ca7fca6b855e9291a5c5538ae59e0aaa - Sigstore transparency entry: 813314385
- Sigstore integration time:
-
Permalink:
camodotgg/mcsrranked-python@3a909d419f4b07ab2433cb6a002cd2e0ebd9bea3 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/camodotgg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3a909d419f4b07ab2433cb6a002cd2e0ebd9bea3 -
Trigger Event:
release
-
Statement type: