Skip to main content

Python wrapper around riot games developer api.

Project description

pyltover

Python wrapper around riot games developer api.

Installation

The package is uploaded into pypi and you can install it using pip or uv.

$ pip install pyltover

Supported APIs

  • Account
    • v1
      • Get Account by puuid
      • Get Account by riot id
      • Get active shard for a player
      • Get active region (lol and tft)
      • Get account by access token - Not possible with development key
  • Champion Mastery
    • v4
      • Get all champion mastery entries sorted by number of champion points descending.
      • Get a champion mastery by puuid and champion ID.
      • Get specified number of top champion mastery entries sorted by number of champion points descending.
      • Get a player's total champion mastery score, which is the sum of individual champion mastery levels.
  • Champion
    • v3
      • Returns champion rotations, including free-to-play and low-level free-to-play rotations (REST)
  • Clash
    • v1
      • Get players by puuid
      • Get team by ID.
      • Get all active or upcoming tournaments.
      • Get tournament by team ID.
      • Get tournament by ID.
  • League
    • v4
      • Get the challenger league for given queue.
      • Get league entries in all queues for a given puuid
      • Get all the league entries.
      • Get the grandmaster league of a specific queue.
      • Get league with given ID, including inactive entries.
      • Get the master league for given queue.
  • Summoner
    • v4
      • Get a summoner by encrypted PUUID.
  • Challenges
    • v1
      • List of all basic challenge configuration information (includes all translations for names and descriptions)
      • Map of level to percentile of players who have achieved it - keys: ChallengeId -> Season -> Level -> percentile of players who achieved it
      • Get challenge configuration (REST)
      • Return top players for each level. Level must be MASTER, GRANDMASTER or CHALLENGER.
      • Map of level to percentile of players who have achieved it
      • Returns player information with list of all progressed challenges (REST)
  • Match
    • v5
      • Get a list of match ids by puuid
      • Get a match by match id
      • Get a match timeline by match id

How to use?

Get your token from Riot games developer website.

import asyncio
from pyltover import Pyltover


async def main():
    pyltover = Pyltover("your token")
    champion_mastery_score = await pyltover.euw1.v4.get_total_champion_mastery_score("puuid")
    print(champion_mastery_score)

    account_details = await pyltover.europe.v1.get_account_by_puuid("puuid")
    print(account_details)

    summoner = await pyltover.euw1.v4.get_summoner_by_puuid("puuid")
    print(summoner)

    champion_rotation = await pyltover.euw1.v3.get_champion_rotaions("puuid")
    print(champion_rotation)

asyncio.run(main())

Servers are listed as properties under pyltover root object, e.g. pytlover.euw or pyltover.na. The API versions are listed under each server, e.g. pyltover.euw.v1 or pyltover.euw.v4.

The response objects are Pydantic model objects.

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

pyltover-0.1.14.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

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

pyltover-0.1.14-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file pyltover-0.1.14.tar.gz.

File metadata

  • Download URL: pyltover-0.1.14.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pyltover-0.1.14.tar.gz
Algorithm Hash digest
SHA256 b598f051600ac0f3b91f415c45d2128907ed8f6066b1d36057f845a08460c2e1
MD5 848161b07007e0e4a0a3491dc0f8e2a6
BLAKE2b-256 9218fd6bcafb58a863d62f30b5f2e40cec161ffb629471a421ed5c3e7d645e9b

See more details on using hashes here.

File details

Details for the file pyltover-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: pyltover-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pyltover-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 1815e4b71d3fa9f51b22dcb2c5f239e6fc89b7f17415127aee862e2bbe1e6130
MD5 2d0305be8c12185d977d0385abf56445
BLAKE2b-256 800f94e9336aecb0c8345f602cddbd208b094c85da74d81561b34136f6f8615a

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