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.1.tar.gz (6.3 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.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcsrrankedapy-1.0.1.tar.gz
  • Upload date:
  • Size: 6.3 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.1.tar.gz
Algorithm Hash digest
SHA256 5cde5673bf41510636083fd3be51bb75588d36a115f457f0ab438b81acb6544d
MD5 08beaa60708ac35eb01f051336c38cac
BLAKE2b-256 50285eba1f42b84c7dfbe3cde474b95e3e0abce9834111f62c2f9f591a0b6469

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcsrrankedapy-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3c6a3b773870d02b1854591b48dd59ff5fb0d6d01d8d24a91dc0d74a3900574
MD5 b16eda5478e9ebf7df8ced083472b9fe
BLAKE2b-256 4fa78049610dc74228ce80076ced367d21fdb0be2db9d95ee0eedb7a79c27646

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