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
- v1
- 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.
- v4
- Champion
- v3
- Returns champion rotations, including free-to-play and low-level free-to-play rotations (REST)
- v3
- 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.
- v1
- League entries
- v4
- Get all the league entries.
- v4
- 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.
- v4
- 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)
- v1
- Match
- v5
- Get a list of match ids by puuid
- Get a match by match id
- Get a match timeline by match id
- v5
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)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyltover-0.1.5.tar.gz.
File metadata
- Download URL: pyltover-0.1.5.tar.gz
- Upload date:
- Size: 39.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe0395ea4a3d01f8a5b134f80aafdcc33b9a3dc1c2bb93374f5526e7be641190
|
|
| MD5 |
b671acf5f229fbca1f1fb924aa21000d
|
|
| BLAKE2b-256 |
2ab3deec7277f2c79737664e48d4d3d5cdc6d850b59cac69a539e90a6dc4948d
|
File details
Details for the file pyltover-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pyltover-0.1.5-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9692cc277f97062d7838e3d31cca9692995539fcd07857b848a960e5e001cdaf
|
|
| MD5 |
cd3582e2a84ca8d1b876a10a67d836ee
|
|
| BLAKE2b-256 |
90aa5e03a79272fb65dde96b29e0264b30c449871070e847c56cd5081431fdb7
|