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
- 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
- Summoner
- v4
- Get a summoner by encrypted PUUID.
- 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)
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.
Metadata
Release files for pyltover 0.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyltover-0.1.16.tar.gz | 40.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyltover-0.1.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.1 kB
Release files / pyltover-0.1.16.tar.gz
| Download URL | pyltover-0.1.16.tar.gz |
|---|---|
| Size | 40.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
010d5b12d214444d806a2bb9d83594c014dfd4aa396ac047891b5a5daa569c4d
|
|
BLAKE2b-256 checksum How to use checksums |
6bde2eec54a49350d70338ffd033ed2f3fdf75f840f5b1a9eae2ae1c13155961
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.5 {"installer":{"name":"uv","version":"0.10.5","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}
|
Release files / pyltover-0.1.16-py3-none-any.whl
| Download URL | pyltover-0.1.16-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf06219729be9729f2737b656819429c125af97053f49da736da4565ceb458b2
|
|
BLAKE2b-256 checksum How to use checksums |
3ec83f0e41ca88b40985a762b2e954c27d63793cf7b370c9b4f6f58dfb7cba2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.5 {"installer":{"name":"uv","version":"0.10.5","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}
|
Security for pyltover 0.1.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.