Skip to main content

A thin wrapper around the Riot Games API for League of Legends.

Project description

You can find this project on GitHub at: https://github.com/Alex-Weatherhead/riot_api

You can find this project on PyPi at: https://pypi.org/manage/project/Riot-API/releases/

Making API Calls

Each API call returns a dictionary object containing useful information for managing the control flow of the client program.

If a request is successful, then the dictionary simply contains a flag and the jsonified body of the response.

{
    "successful": True,
    "body": response.json()
}

However, if a request is not successful, the dictionary contains information about the error encountered, as well as whether the request should be retried, and if so, how long after the initial request the client program should wait before retrying.

{
    "successful": False,
    "error": {
        "status_code": status_code,
        "reason": reason
    },
    "retry": False,
    "delay": delay   # If retry is True, this is the amount of time the client program should wait before retrying the request.
}

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

Riot API-0.0.14.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

Riot_API-0.0.14-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file Riot API-0.0.14.tar.gz.

File metadata

  • Download URL: Riot API-0.0.14.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

File hashes

Hashes for Riot API-0.0.14.tar.gz
Algorithm Hash digest
SHA256 1f8756c5b40e22072f2f74a84c04db098a584cfa0bb516c70443ba8284bc0fbc
MD5 0e42b224f8a05b5cbbf9fc9cee18d6ac
BLAKE2b-256 8c57b844125ba08aa254edddb524a8a134e39838fddf0bb6ae0b0b5e85e9690f

See more details on using hashes here.

Provenance

File details

Details for the file Riot_API-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: Riot_API-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

File hashes

Hashes for Riot_API-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 f967438904629ee85b3c0c81e241c9cb2f89d617fe8268a457b7f0338b154c0e
MD5 9b07b7d34f8783703c9b77d8de787e88
BLAKE2b-256 584129cf79fff059a65b431458dc673036d3aca24eba71cde537f7d6944a2152

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page