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.3.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.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcsrrankedapy-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 9e92e6230165ef0a0450de7a1cef6b0cfbf77d369ab0311622fb2f95eb320735
MD5 dad3b72b4f940cb1273814c1e926c1a0
BLAKE2b-256 a2587f1042e0388ed5b983d54c86dde982003065da67ee2e03e263061aa149a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcsrrankedapy-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b41d3df9d5f563bffa5d6e8df595cf51555f03cd3015029108ef31b3ae069667
MD5 15e5367ad5e493879a8045a205b8f6b5
BLAKE2b-256 1b4a3323cbecacf1d1be413e0c2d2c626e57af5e872310869278ee9a3e53ddfd

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