Skip to main content

An API wrapper for the MCSR Ranked API

Project description

MCSRRankedAPY - MCSR Ranked Statistics API Wrapper

Asynchronous wrapper for the MCSRRanked API

Features

  • Full API coverage (API key usage not yet tested)

Installation

mcsrrankedapy is available from the official PyPI package index.

python -m pip install -U mcsrrankedapy

Documentation

https://docs.mcsrranked.com/

The wrapper is almost 100% 1-to-1 consistent with the original JSON API. The only inconsistency is in the .users.get_versus_stats method. The API returns data with keys that depend on the query, which is unpythonic to implement in a Pydantic model. The wrapper instead creates a dict named per_player that matches the API's response.

The official MCSR Ranked API docs describe what specific fields get returned from specific endpoints.

Quick Start

from mcsrrankedapy import MCSRRankedAPYClient
import asyncio


async def main():
  client = MCSRRankedAPYClient()
  query = await client.users.get_data("lowk3y_")
  print(query.connections.youtube.id) # prints UC_HX7WdiAWRZgcG7aOYtCNg
  await client.close()

if __name__ == "__main__":
  asyncio.run(main())

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

mcsrrankedapy-1.0.2.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

mcsrrankedapy-1.0.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file mcsrrankedapy-1.0.2.tar.gz.

File metadata

  • Download URL: mcsrrankedapy-1.0.2.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for mcsrrankedapy-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c454c68666dabc5720320dcb3534e1f71ce262b3ce8b5df63163c17df08b497b
MD5 b723de3e1e379e3964abb1e83123f986
BLAKE2b-256 ceac0f21add432437b5e96e3140280fa75ede05bc37b98f37405105c99097ceb

See more details on using hashes here.

File details

Details for the file mcsrrankedapy-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: mcsrrankedapy-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for mcsrrankedapy-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa2df8863c36d77aafc258f04ab14bf44e644b24a4ba43838e3c0c7bffffb45b
MD5 2666cc2e3407512952b8b09a32b4eee3
BLAKE2b-256 83bae1b1f3a14ef4e0aae0b353628c0ed45d259417d2045e76e5defab7bae930

See more details on using hashes here.

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